From: Peter Rabbitson Date: Fri, 16 Oct 2009 12:28:35 +0000 (+0000) Subject: Fix test to stop failing when DT-support is not present X-Git-Tag: v0.08113~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=746c315f6356bbe180b8bc738d85738f822687dd;p=dbsrgits%2FDBIx-Class.git Fix test to stop failing when DT-support is not present --- diff --git a/t/storage/on_connect_call.t b/t/storage/on_connect_call.t index 12894ee..bea5085 100644 --- a/t/storage/on_connect_call.t +++ b/t/storage/on_connect_call.t @@ -10,7 +10,7 @@ use DBIx::Class::Storage::DBI; # !!! do not replace this with done_testing - tests reside in the callbacks # !!! number of calls is important -use Test::More tests => 15; +use Test::More tests => 16; # !!! my $schema = DBICTest::Schema->clone; @@ -90,8 +90,9 @@ my $schema = DBICTest::Schema->clone; ), 'connection()'; ok (! $schema->storage->connected, 'start disconnected'); - my $parser = $schema->storage->datetime_parser; - $schema->storage->ensure_connected; + $schema->storage->_determine_driver; # this should connect due to the coderef + + ok ($schema->storage->connected, 'determine driver connects'); $schema->storage->disconnect; }