summaryrefslogtreecommitdiff
path: root/mysql-test/t/lock.test
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-07-17 22:59:14 +0300
committerunknown <monty@hundin.mysql.fi>2001-07-17 22:59:14 +0300
commit964e4095874d9fc6bce8c64ff484cbe7deebf125 (patch)
treeadae23d022832ac2bee0a653c88137f823db19d6 /mysql-test/t/lock.test
parent703f4d7b0298834a830aadb2874d6a082e444f99 (diff)
downloadmariadb-git-964e4095874d9fc6bce8c64ff484cbe7deebf125.tar.gz
Added timeouts to make lock test repeatable
mysql-test/r/lock.result: Fixed wrong result for lock mysql-test/t/lock.test: Added timeouts to make test repeatable
Diffstat (limited to 'mysql-test/t/lock.test')
-rw-r--r--mysql-test/t/lock.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/lock.test b/mysql-test/t/lock.test
index 1eed6bb91e9..77354e63252 100644
--- a/mysql-test/t/lock.test
+++ b/mysql-test/t/lock.test
@@ -66,8 +66,10 @@ lock tables t1 write;
connection writer;
send update low_priority t1 set n = 4;
connection reader;
+--sleep 2
send select n from t1;
connection locker;
+--sleep 2
unlock tables;
connection writer;
reap;
@@ -82,8 +84,10 @@ lock tables t1 read;
connection writer;
send update low_priority t1 set n = 4;
connection reader;
+--sleep 2
send select n from t1;
connection locker;
+--sleep 2
unlock tables;
connection writer;
reap;