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=a2463e4a625d209c29d19a7aba6fe75531fecf5c;hb=87974600d4fe8f7d4140a75ea97443a3c5cda4d5;hp=b85da4a6e1b5f6b56f685b4a60914bd55f749589;hpb=e8b32a6d045b4d04ba023d48be1c8e32065fcec6;p=dbsrgits%2FDBIx-Class.git diff --git a/t/93storage_replication.t b/t/93storage_replication.t index b85da4a..a2463e4 100644 --- a/t/93storage_replication.t +++ b/t/93storage_replication.t @@ -361,10 +361,7 @@ is $artist1->name, 'Ozric Tentacles' ## Check that master_read_weight is honored { - no warnings 'once'; - - # turn off redefined warning - local $SIG{__WARN__} = sub {}; + no warnings qw/once redefine/; local *DBIx::Class::Storage::DBI::Replicated::Balancer::Random::_random_number =