1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-14380 Reduce possibility to timing-induced error in test

Also, shorten the test so it usually runs 2 seconds, not 3.
This commit is contained in:
Vladislav Vaintroub
2018-04-10 16:17:15 +01:00
parent 9e9ea4f64a
commit 8334aced00
2 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
SELECT @@MAX_STATEMENT_TIME;
@@MAX_STATEMENT_TIME
0.000000
SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(1);
SET STATEMENT MAX_STATEMENT_TIME=3 FOR SELECT SLEEP(1);
SLEEP(1)
0
SHOW STATUS LIKE "max_statement_time_exceeded";
Variable_name Value
Max_statement_time_exceeded 0
SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(3);
SET STATEMENT MAX_STATEMENT_TIME=1 FOR SELECT SLEEP(3);
SLEEP(3)
1
SHOW STATUS LIKE "max_statement_time_exceeded";