X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Fdbh_do.t;h=1511f82e64b64b94e512c8360abd98c558b683e3;hb=f5f0cb1ddc5bc6b022f08a2cd95201596a5246f0;hp=952fa1c9d3b294c95144aca853bb58e9c406a906;hpb=b74b15b066a19f07b575883abd397ea4d3b045db;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/storage/dbh_do.t b/t/storage/dbh_do.t index 952fa1c..1511f82 100644 --- a/t/storage/dbh_do.t +++ b/t/storage/dbh_do.t @@ -1,14 +1,20 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; -use lib qw(t/lib); + use DBICTest; my $schema = DBICTest->init_schema(); my $storage = $schema->storage; +$storage = $storage->master + if $ENV{DBICTEST_VIA_REPLICATED}; + + # test (re)connection for my $disconnect (0, 1) { $schema->storage->_dbh->disconnect if $disconnect;