X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F93storage_replication.t;fp=t%2F93storage_replication.t;h=53e9fc96b21044b1e7f9743cd1505b11bacb7dbc;hb=8287e9f80f27e4abc7db2aca296d20d90465d7aa;hp=6c56145cdcf2ded53f7ecd1a26dc1c3ecd279832;hpb=b54dbe8c770662c25310b8dcee746481248f8b5c;p=dbsrgits%2FDBIx-Class.git diff --git a/t/93storage_replication.t b/t/93storage_replication.t index 6c56145..53e9fc9 100644 --- a/t/93storage_replication.t +++ b/t/93storage_replication.t @@ -13,7 +13,7 @@ BEGIN { eval "use DBIx::Class::Storage::DBI::Replicated; use Test::Moose"; plan $@ ? ( skip_all => "Deps not installed: $@" ) - : ( tests => 130 ); + : ( tests => 132 ); } use_ok 'DBIx::Class::Storage::DBI::Replicated::Pool'; @@ -773,7 +773,12 @@ is $debug{storage_type}, 'REPLICANT', "got last query from a replicant: $debug{d ok $artist->discard_changes() => 'properly called discard_changes against master (default attrs)'; - is $debug{storage_type}, 'MASTER', "got last query from a master: $debug{dsn}" + is $debug{storage_type}, 'MASTER', "got last query from a master: $debug{dsn}"; + + ok $artist->discard_changes({force_pool=>$replicant_names[0]}) + => 'properly able to override the default attributes'; + + is $debug{storage_type}, 'REPLICANT', "got last query from a replicant: $debug{dsn}" } ## Test some edge cases, like trying to do a transaction inside a transaction, etc