From 7c4b37e2c17694dcca1bf96c7b63238ed091cc33 Mon Sep 17 00:00:00 2001 From: Baron Schwartz Date: Wed, 6 Jun 2012 13:04:36 -0400 Subject: [PATCH] Fix a timing issue in t/pt-table-sync/triggers.t --- t/pt-table-sync/triggers.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/pt-table-sync/triggers.t b/t/pt-table-sync/triggers.t index 5025dd68..38a14aaf 100644 --- a/t/pt-table-sync/triggers.t +++ b/t/pt-table-sync/triggers.t @@ -96,6 +96,7 @@ like( # Issue 367: mk-table-sync incorrectly advises --ignore-triggers # ############################################################################# +diag('Loading file and waiting for replication'); $sb->load_file('master', 't/pt-table-sync/samples/issue_367.sql'); PerconaTest::wait_for_table( $slave_dbh, @@ -126,6 +127,7 @@ unlike( "Doesn't warn about trigger on db1 (issue 367)" ); +$sb->wait_for_slaves(); my $r = $slave_dbh->selectrow_array('SELECT * FROM db2.t1 WHERE i = 5'); is( $r,