diff options
Diffstat (limited to 'mysql-test/include/wait_until_rows_count.inc')
-rw-r--r-- | mysql-test/include/wait_until_rows_count.inc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/include/wait_until_rows_count.inc b/mysql-test/include/wait_until_rows_count.inc new file mode 100644 index 00000000..f1b79c54 --- /dev/null +++ b/mysql-test/include/wait_until_rows_count.inc @@ -0,0 +1,20 @@ +# include/wait_until_rows_count.inc +# +# SUMMARY +# +# Waits until SELECT count(*) = $count from $table returns true, or +# the operation times out. +# +# USAGE +# +# let $count= 5; +# let $table= t1; +# --source include/wait_until_rows_count.inc +# +# EXAMPLE +# extra/binlog/binlog_insert_delayed.test +# + +let $wait_condition= + select count(*) = $count from $table; +--source include/wait_condition.inc |