Commit 34cf139b authored by knielsen@mysql.com's avatar knielsen@mysql.com

Fix race condition in test case wait_timeout.

Sometimes the helper connection (that is watching for the main connection
to time out) would itself time out first, causing the test to fail.
parent 6043f298
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
connect (wait_con,localhost,root,,test,,); connect (wait_con,localhost,root,,test,,);
flush status; # Reset counters flush status; # Reset counters
connection wait_con; connection wait_con;
set session wait_timeout=100;
let $retries=300; let $retries=300;
let $aborted_clients = `SHOW STATUS LIKE 'aborted_clients'`; let $aborted_clients = `SHOW STATUS LIKE 'aborted_clients'`;
set @aborted_clients= 0; set @aborted_clients= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment