summaryrefslogtreecommitdiff
path: root/mysql-test/include/rpl_events.inc
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2007-06-14 12:53:13 +0300
committerunknown <gkodinov/kgeorge@magare.gmz>2007-06-14 12:53:13 +0300
commit37559e3db5f26a46aabef179ac61b90bc777591a (patch)
tree00af0e2017931da09fbd721299f6a28128ebd280 /mysql-test/include/rpl_events.inc
parentab84fb1d1be385cb9f259f217fbec458a94234fa (diff)
downloadmariadb-git-37559e3db5f26a46aabef179ac61b90bc777591a.tar.gz
Bug #28991: rpl_events failure in pushbuild
In tests waiting on a timeout is not deterministic enough to make sure that an event actually finished executing. Fixed the test by waiting in a loop and checking the effect that the event is supposed to produce. mysql-test/include/rpl_events.inc: Bug #28991: wait until event has taken effect
Diffstat (limited to 'mysql-test/include/rpl_events.inc')
-rw-r--r--mysql-test/include/rpl_events.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/include/rpl_events.inc b/mysql-test/include/rpl_events.inc
index 04885f31997..bbe52d3628b 100644
--- a/mysql-test/include/rpl_events.inc
+++ b/mysql-test/include/rpl_events.inc
@@ -29,6 +29,9 @@ SELECT db, name, status, originator FROM mysql.event WHERE db = 'test' AND name
# wait 3 seconds, so the event can trigger
--real_sleep 3
+let $wait_condition=
+ SELECT count(*) = 1 FROM t1 WHERE c = 'from justonce';
+--source include/wait_condition.inc
# check that table t1 contains something
--echo "in the master"