diff --git a/mysql-test/suite/perfschema/t/statement_program_concurrency.test b/mysql-test/suite/perfschema/t/statement_program_concurrency.test index 75261254c00..8229223caec 100644 --- a/mysql-test/suite/perfschema/t/statement_program_concurrency.test +++ b/mysql-test/suite/perfschema/t/statement_program_concurrency.test @@ -91,7 +91,9 @@ connection con3; --reap; connection default; ---source include/wait_until_connected_again.inc + +--let $wait_condition=select count(*)=3 from information_schema.processlist where command='sleep'; +--source include/wait_condition.inc SELECT OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, COUNT_STAR, COUNT_STATEMENTS FROM performance_schema.events_statements_summary_by_program