mysql-test/suite/perfschema/include/wait_for_pfs_thread_count.inc
raw| 1 | # Tests for the performance schema |
| 2 | # This helper can be used to enforce that no threads from previous |
| 3 | # tests are still running, which can impact some test scripts. |
| 4 | |
| 5 | # Wait until there is only one session left, this one. |
| 6 | |
| 7 | let $wait_condition= select count(*) = 1 from performance_schema.threads where `type`='foreground'; |
| 8 | --source include/wait_condition.inc |
| 9 |