diff options
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/t/status.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/t/status.test b/mysql-test/t/status.test index b3d167a9341..1208393aa09 100644 --- a/mysql-test/t/status.test +++ b/mysql-test/t/status.test @@ -22,11 +22,14 @@ connection con2; lock tables t1 read; unlock tables; lock tables t1 read; +let $ID= `select connection_id()`; connection con1; --send update t1 set n = 3; connection con2; -sleep 1; +# wait for the other query to start executing +let $wait_condition= select 1 from INFORMATION_SCHEMA.PROCESSLIST where ID = $ID and STATE = 0; +--source include/wait_condition.inc unlock tables; connection con1; reap; |