X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Foffline_pg.t;h=1a04fce6d99e63bb03489c23d8a067cd034a5b59;hb=c0329273268971824784f239f32c7246e68da9c5;hp=9a49aa81d80a8937973389e2653534ed9ae6060e;hpb=2baba3d9dbc029462c5ce8e2b86c74ed650b22c0;p=dbsrgits%2FDBIx-Class.git diff --git a/t/icdt/offline_pg.t b/t/icdt/offline_pg.t index 9a49aa8..1a04fce 100644 --- a/t/icdt/offline_pg.t +++ b/t/icdt/offline_pg.t @@ -1,11 +1,12 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt icdt_pg ); +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt_pg ); use strict; use warnings; use Test::More; use Test::Warn; -use lib qw(t/lib); + use DBICTest; DBICTest::Schema->load_classes('EventTZPg'); @@ -27,6 +28,10 @@ DBICTest::Schema->load_classes('EventTZPg'); my $schema = DBICTest->init_schema(); +# this may generate warnings under certain CI flags, hence do it outside of +# the warnings_are below +my $dt = DateTime->new( year => 2000, time_zone => "America/Chicago" ); + warnings_are { my $event = $schema->resultset("EventTZPg")->find(1); $event->update({created_on => '2009-01-15 17:00:00+00'});