Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions t/09-resultset.t
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,5 @@ $result->rewind;
diag "calling next() after add_term() with 'op'" . $result->next; ## this should return the object which has "rating == 3".
}

$wine->driver->dbh->disconnect;
teardown_dbs(qw( global ));
1 change: 1 addition & 0 deletions t/10-resultset-peek.t
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,5 @@ is $result->peek_next->name, 'Stags Leap', 'the next one will be Stags Leap';
is $result->next->name, 'Stags Leap';
ok ! $result->peek_next, "Stags Leap was the last one";

$wine->driver->dbh->disconnect;
teardown_dbs(qw( global ));
2 changes: 2 additions & 0 deletions t/12-windows.t
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ ok( !$iter->(), "No third row; limit argument respected" );
is( $load_count, 2, "2 objects loaded; limit argument respected");
$iter->end;

$r->driver->dbh->disconnect;
$i->driver->dbh->disconnect;
teardown_dbs(qw( global ));

print Dumper( Data::ObjectDriver->profiler->query_log ) if $ENV{DOD_PROFILE};
3 changes: 3 additions & 0 deletions t/35-multiplexed.t
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,7 @@ sub _check_object {
is $obj2->recipe_id, $obj->recipe_id;
}

for my $driver (@{ Ingredient2Recipe->driver->drivers }) {
$driver->dbh->disconnect;
}
teardown_dbs(qw( global1 global2 ));