wtf
Peter Rabbitson [Thu, 18 Jun 2009 12:05:42 +0000 (12:05 +0000)]
t/93storage_replication.t

index b85da4a..a2463e4 100644 (file)
@@ -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 =