Subject: | cleanup fails under windows |
Hi. DBIx::Class::Schema::Populate::Test::Schema fails to unlink a test
database under Win32 (as Win32 refuses to unlink an open file), and the
following tests fail saying tables/indices already exist. Attached patch
would fix it by disconnecting the database explicitly. Hope this helps.
Subject: | DBIx-Class-Schema-PopulateMore.patch |
diff --git a/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm b/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm
index 0fdb607..8cbe778 100644
--- a/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm
+++ b/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm
@@ -115,6 +115,7 @@ cleanup any temporary files
sub cleanup {
my $self = shift @_;
+ $self->storage->dbh->disconnect;
unlink $self->test_dbfile_path;
}