From: Rafael Kitover Date: Sun, 23 May 2010 05:26:11 +0000 (-0400) Subject: silence warning X-Git-Tag: 0.07001~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c59a00962505d565186aa386e6b4c5aaf3a96360;p=dbsrgits%2FDBIx-Class-Schema-Loader.git silence warning --- diff --git a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm index 7e046fc..a67eb61 100644 --- a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm +++ b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm @@ -553,7 +553,10 @@ sub run_tests { $dbh->disconnect; } - my @new = $conn->rescan; + my @new = do { + local $SIG{__WARN__} = sub {}; + $conn->rescan; + }; is(scalar(@new), 1); is($new[0], 'LoaderTest30');