Make pt-archiver tests more reliable on weird, slow boxes like my vbox.

This commit is contained in:
Daniel Nichter
2011-07-14 09:57:16 -06:00
parent c78beba647
commit db76b3ca30
9 changed files with 38 additions and 106 deletions

View File

@@ -36,6 +36,7 @@ my $cmd = "perl -I $trunk/t/pt-archiver/samples $trunk/bin/pt-archiver";
# Bulk delete with limit that results in 2 chunks.
# ###########################################################################
$sb->load_file('master', "t/pt-archiver/samples/delete_more.sql");
PerconaTest::wait_for_table($dbh, '`db`.`main_table-123`');
$dbh->do('use dm');
is_deeply(
@@ -121,7 +122,7 @@ SKIP: {
# Run it again without DSN b so changes should be made on slave.
$sb->load_file('master', "t/pt-archiver/samples/delete_more.sql");
sleep 1;
PerconaTest::wait_for_table($slave_dbh, "`dm`.`main_table-123`");
is_deeply(
$slave_dbh->selectall_arrayref('select * from `main_table-123` order by id'),