Remove PerconaTest::wait_for_table() after calls to Sandbox::load_file() which now implicitly calls Sandbox::wait_for_slaves().

This commit is contained in:
Daniel Nichter
2012-06-07 10:25:44 -04:00
parent 4af46e81f9
commit dac0731251
29 changed files with 27 additions and 90 deletions

View File

@@ -35,14 +35,11 @@ else {
plan tests => 3;
}
$sb->wipe_clean($master_dbh);
$sb->create_dbs($master_dbh, [qw(test)]);
# #############################################################################
# Issue 363: lock and rename.
# #############################################################################
$sb->create_dbs($master_dbh, [qw(test)]);
$sb->load_file('master', 't/pt-table-sync/samples/before.sql');
PerconaTest::wait_for_table($slave_dbh, "test.test2");
$output = `$trunk/bin/pt-table-sync --lock-and-rename h=127.1,P=12345 P=12346 2>&1`;
like($output, qr/requires exactly two/,