Browse Source

Make events.test more robust against timing issues.

mysql-test/t/events.test:
  Wait until event scheduler thread reaches exactly the same state
  which later appears in the results of select from processlist.
pull/374/head
unknown 18 years ago
parent
commit
ed34d91121
  1. 3
      mysql-test/t/events.test

3
mysql-test/t/events.test

@ -487,7 +487,8 @@ create event закачка21 on schedule every 10 hour do select get_lock("test
--echo "Should have only 2 processes: the scheduler and the locked event"
let $wait_condition= select count(*) = 2 from information_schema.processlist
where ( (state like 'User lock%' AND info like 'select get_lock%')
OR (command='Daemon' AND user='event_scheduler'));
OR (command='Daemon' AND user='event_scheduler' AND
state = 'Waiting for next activation'));
--source include/wait_condition.inc
select /*3*/ user, host, db, command, state, info

Loading…
Cancel
Save