Added master server restart in the cleanup for t/pt-online-schema-change/pt-2168-cancel.t test, so next test is not affected by not properly closed connections in 5.7

This commit is contained in:
Sveta Smirnova
2024-06-06 00:40:17 +03:00
parent 8dd0f28f64
commit aaa258d209

View File

@@ -174,10 +174,15 @@ diag(`mv $cnf.bak $cnf`);
diag(`/tmp/12347/stop >/dev/null`); diag(`/tmp/12347/stop >/dev/null`);
diag(`/tmp/12347/start >/dev/null`); diag(`/tmp/12347/start >/dev/null`);
diag("Dropping test database"); diag("Dropping test databases");
$master_dbh->do("DROP DATABASE test_recursion_method");
$master_dbh->do("DROP DATABASE IF EXISTS test"); $master_dbh->do("DROP DATABASE IF EXISTS test");
$sb->wait_for_slaves(); $sb->wait_for_slaves();
$sb->wipe_clean($master_dbh); $sb->wipe_clean($master_dbh);
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox"); ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
diag(`/tmp/12345/stop >/dev/null`);
diag(`/tmp/12345/start >/dev/null`);
done_testing; done_testing;