Sometimes Sandbox.pm tries to kill a connection that's already gone, and that kills the whole test.

This commit is contained in:
Baron Schwartz
2012-06-04 12:08:50 -04:00
parent 48fc1f82a7
commit 3a717b645c

View File

@@ -168,7 +168,7 @@ sub wipe_clean {
(($cxn->{user}||'') eq 'msandbox' && ($cxn->{command}||'') eq 'Sleep')
|| (($cxn->{User}||'') eq 'msandbox' && ($cxn->{Command}||'') eq 'Sleep')
) {
$dbh->do("KILL $cxn->{id}");
eval { $dbh->do("KILL $cxn->{id}"); };
}
}
foreach my $db ( @{$dbh->selectcol_arrayref('SHOW DATABASES')} ) {