X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Fengine_specific%2Fsqlite.t;h=837d62fd96937d42ad45e5400f930227f73b0138;hb=8b60b9211a085572446bbfd19e879d00ae03658a;hp=8a152ab4c775d79c2e24853bd54ef1c3629dd6c1;hpb=7d6c28b70b4c37d6296ea4a17ac919799b3a8bc2;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