X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F22-deflate_order.t;h=a3188507cafce85c0e59c0ab70f5963455a15566;hb=3f1d61d063d5fd98d80099784d68d37aa1e2e00a;hp=1de3f871a1d7909fc3a64b85cda4819fe2d6fc5e;hpb=68de943862f06cabd397d2e74d12cd9cdc999779;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/22-deflate_order.t b/t/cdbi/22-deflate_order.t index 1de3f87..a318850 100644 --- a/t/cdbi/22-deflate_order.t +++ b/t/cdbi/22-deflate_order.t @@ -3,17 +3,12 @@ use strict; use Test::More; -eval "use DBIx::Class::CDBICompat; use Time::Piece::MySQL;"; -if ($@) { - plan (skip_all => "Time::Piece::MySQL, Class::Trigger and DBIx::ContextualFetch required: $@"); -} - -plan skip_all => 'Set $ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test' - unless ($ENV{DBICTEST_MYSQL_DSN} && $ENV{DBICTEST_MYSQL_USER}); +use lib 't/cdbi/testlib'; +use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs -plan tests => 3; +eval { require Time::Piece::MySQL } + or plan skip_all => 'Time::Piece::MySQL required for this test'; -use lib 't/cdbi/testlib'; use_ok ('Log'); package main; @@ -27,3 +22,4 @@ $log->update; ok eval { $log->datetime_stamp }, "Have datetime after update"; diag $@ if $@; +done_testing;