mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-22 11:54:54 +00:00
Make pt-archiver tests more reliable on weird, slow boxes like my vbox.
This commit is contained in:
@@ -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'),
|
||||
|
Reference in New Issue
Block a user