X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F94versioning.t;h=674a855317527949ca1ae72b2971ca88cfe684d2;hb=8f1617e23a195d3730e821d3dda2eeb913b99b22;hp=9ea6762403a8061bced7a012feaba915af8f0a4a;hpb=7f6f5b6903a37eb52b4e08398ac4ce64ce35f8e1;p=dbsrgits%2FDBIx-Class.git diff --git a/t/94versioning.t b/t/94versioning.t index 9ea6762..674a855 100644 --- a/t/94versioning.t +++ b/t/94versioning.t @@ -5,7 +5,6 @@ use warnings; use Test::More; use File::Spec; use File::Copy; -use Time::HiRes qw/time sleep/; #warn "$dsn $user $pass"; my ($dsn, $user, $pass); @@ -16,10 +15,14 @@ BEGIN { plan skip_all => 'Set $ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test' unless ($dsn); - require DBIx::Class; + eval { require Time::HiRes } + || plan skip_all => 'Test needs Time::HiRes'; + Time::HiRes->import(qw/time sleep/); + + require DBIx::Class::Storage::DBI; plan skip_all => - 'Test needs SQL::Translator ' . DBIx::Class->_sqlt_minimum_version - if not DBIx::Class->_sqlt_version_ok; + 'Test needs SQL::Translator ' . DBIx::Class::Storage::DBI->_sqlt_minimum_version + if not DBIx::Class::Storage::DBI->_sqlt_version_ok; } my $version_table_name = 'dbix_class_schema_versions';