X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest.pm;h=e9c83fb2214f7d6252ee439c1c30f5405bf09550;hb=961d79db;hp=aa20b0c0d536d04ada3bccb8e2c4f6037be0260d;hpb=d7d45bdc6577c020f62cfbf6767431a1c41a351f;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm index aa20b0c..e9c83fb 100644 --- a/t/lib/DBICTest.pm +++ b/t/lib/DBICTest.pm @@ -343,7 +343,11 @@ sub init_schema { } END { + # Make sure we run after any cleanup in other END blocks + require B; + push @{ B::end_av()->object_2svref }, sub { assert_empty_weakregistry($weak_registry, 'quiet'); + }; } =head2 deploy_schema