X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F40compose_connection.t;fp=t%2F40compose_connection.t;h=a68a2c26c5d6458fa67c1ef591f5fb136953d910;hb=8d73fcd44e0441f0252744be32bada6816c5ff6b;hp=6cd62fff00f590b2b27352bdb9ca244022e27362;hpb=6243d42b1ac9b614382e6126ca76a3a42953a7e9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/40compose_connection.t b/t/40compose_connection.t index 6cd62ff..a68a2c2 100644 --- a/t/40compose_connection.t +++ b/t/40compose_connection.t @@ -16,15 +16,7 @@ warnings_exist { DBICTest->init_schema( compose_connection => 1, sqlite_use_file cmp_ok(DBICTest->resultset('Artist')->count, '>', 0, 'count is valid'); -# cleanup globals so we do not trigger the leaktest -for ( map { DBICTest->schema->class($_) } DBICTest->schema->sources ) { - $_->class_resolver(undef); - $_->resultset_instance(undef); - $_->result_source_instance(undef); -} -{ - no warnings qw/redefine once/; - *DBICTest::schema = sub {}; -} +# cleanup globaly cached handle so we do not trigger the leaktest +DBICTest->schema->storage->disconnect; done_testing;