X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Fengine_specific%2Fsqlite.t;fp=t%2Ficdt%2Fengine_specific%2Fsqlite.t;h=837d62fd96937d42ad45e5400f930227f73b0138;hb=fd2c6658f74eda2831017727d3890dffd0eff06c;hp=8a152ab4c775d79c2e24853bd54ef1c3629dd6c1;hpb=da4a8fe752719362c6f6b1be5b42593fc4509ad6;p=dbsrgits%2FDBIx-Class.git diff --git a/t/icdt/engine_specific/sqlite.t b/t/icdt/engine_specific/sqlite.t index 8a152ab..837d62f 100644 --- a/t/icdt/engine_specific/sqlite.t +++ b/t/icdt/engine_specific/sqlite.t @@ -17,10 +17,15 @@ use DBICTest; my $storage = $schema->storage; - is( - ref $storage, 'DBIx::Class::Storage::DBI', - 'Starting with generic storage' - ); + if ($ENV{DBICTEST_VIA_REPLICATED}) { + $storage = $storage->master; + } + else { + is( + ref $storage, 'DBIx::Class::Storage::DBI', + 'Starting with generic storage' + ); + } # Calling date_time_parser should cause the storage to be reblessed, # so that we can pick up datetime_parser_type from subclasses