summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Prohaska <prohaska@tokutek.com>2013-10-04 11:45:05 -0400
committerRich Prohaska <prohaska@tokutek.com>2013-10-04 11:45:05 -0400
commit3a5e78db2a3f629b0c4512ec5c0c78659ec6d38a (patch)
treedd6f33f2e047da90f9dfe12598adc078063717e1
parentb09f1c49bf476f4e5414a098b0095933fb6d17ce (diff)
downloadmariadb-git-3a5e78db2a3f629b0c4512ec5c0c78659ec6d38a.tar.gz
#90 fix race conditions in tests that cause sporadic test failures
-rw-r--r--mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test1
-rw-r--r--mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test1
-rw-r--r--mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test1
3 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test b/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
index dc36d157e82..1becf71a80a 100644
--- a/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
+++ b/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
@@ -27,6 +27,7 @@ send insert into t values (1);
# should find the presence of a lock on 1st transaction
connection default;
+real_sleep 1; # give some time for conn_b to block
replace_column 1 TRX_ID 2 MYSQL_ID;
select * from information_schema.tokudb_locks;
diff --git a/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test b/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test
index faf0ffb72da..87656f29395 100644
--- a/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test
+++ b/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test
@@ -24,6 +24,7 @@ send insert into t values (1);
# should find the presence of a lock on 1st transaction
connection default;
+real_sleep 1; # give some time for conn_b to get blocked
replace_column 1 TRX_ID 2 MYSQL_ID;
select * from information_schema.tokudb_locks;
diff --git a/mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test b/mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test
index dbfa746a7d9..52c09c1c049 100644
--- a/mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test
+++ b/mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test
@@ -30,6 +30,7 @@ send insert into t values (1);
# should find the presence of a lock on 2nd transaction
connection default;
+real_sleep 1; # give some time for conn_b to get blocked
replace_column 1 TRX_ID 2 MYSQL_ID;
eval select * from information_schema.tokudb_locks;