X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F94versioning.t;h=a154d8f9682db27e2bb8892094f394f9b511c04b;hb=81023d83ad94dc8e6601d7c8aad598673f90ad18;hp=93fcca7faee264568816a2b1042f81830d4ee219;hpb=bb96193692f7c0f53de7fe15e157492b0af51988;p=dbsrgits%2FDBIx-Class.git diff --git a/t/94versioning.t b/t/94versioning.t index 93fcca7..a154d8f 100644 --- a/t/94versioning.t +++ b/t/94versioning.t @@ -285,6 +285,17 @@ my $schema_v3 = DBICVersion::Schema->connect($dsn, $user, $pass, { ignore_versio ok($get_db_version_run == 0, "attributes pulled from list connect_info"); } +# at this point we have v1, v2 and v3 still connected +# make sure they are the only connections and everything else is gone +is + scalar( grep + { defined $_ and $_->{Active} } + map + { @{$_->{ChildHandles}} } + values %{ { DBI->installed_drivers } } + ), 3, "Expected number of connections at end of script" +; + END { unless ($ENV{DBICTEST_KEEP_VERSIONING_DDL}) { $ddl_dir->rmtree;