Fix and make tests more reliable.

This commit is contained in:
Daniel Nichter
2011-07-14 11:05:05 -06:00
parent db76b3ca30
commit 7526f97224
8 changed files with 40 additions and 32 deletions

View File

@@ -122,7 +122,8 @@ 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");
PerconaTest::wait_for_table($slave_dbh, "`dm`.`main_table-123`");
PerconaTest::wait_for_table($slave_dbh, "`dm`.`main_table-123`", 'id=5');
PerconaTest::wait_for_table($slave_dbh, "`dm`.`other_table-123`", 'id=r6');
is_deeply(
$slave_dbh->selectall_arrayref('select * from `main_table-123` order by id'),