Subject: | [patch] tests fail on Windows if Test::WWW::Mechanize::Catalyst is available |
Because Windows cannot remove open file, so DB from 04dbi.t remains for other tests. In 05cdbi.t table sessions has different column names.
Patch closes DB, so it will be deleted.
--
Alexandr Ciornii, http://chorny.net
Subject: | 04dbi.t.patch |
--- 04dbi.t.dist 2010-03-23 23:45:22.000000000 +0200
+++ 04dbi.t 2016-04-02 12:47:44.326307200 +0300
@@ -80,5 +80,9 @@
$ua1->content_contains( "please login", "ua1 not logged in" );
$ua2->content_contains( "please login", "ua2 not logged in" );
+if ($^O eq 'MSWin32') {
+ $Test::WWW::Mechanize::Catalyst::APP_CLASS->_session_dbh->disconnect;
+ #to be able to delete DB file;
+}
# Clean up
rmtree "$FindBin::Bin/tmp";