X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbackcompat%2F0.04006%2Flib%2Fdbixcsl_common_tests.pm;h=a67eb6131e3c978aab74323d1d1d2f6d149c850b;hb=c59a00962505d565186aa386e6b4c5aaf3a96360;hp=5dd3ba213e75ba3fad8f4055eb7966a0ec9b2a35;hpb=ee07e280e5cfc275ee3ddd376031d088188b45c2;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm index 5dd3ba2..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'); @@ -665,7 +668,7 @@ sub create { dat VARCHAR(8), from_id INTEGER, to_id INTEGER, - PRIMARY KEY (id1,id2) + PRIMARY KEY (id1,id2), FOREIGN KEY (from_id) REFERENCES loader_test4 (id), FOREIGN KEY (to_id) REFERENCES loader_test4 (id) ) $self->{innodb}