diff options
author | Rich Prohaska <prohaska@tokutek.com> | 2013-10-04 11:45:05 -0400 |
---|---|---|
committer | Rich Prohaska <prohaska@tokutek.com> | 2013-10-04 11:45:05 -0400 |
commit | 3a5e78db2a3f629b0c4512ec5c0c78659ec6d38a (patch) | |
tree | dd6f33f2e047da90f9dfe12598adc078063717e1 | |
parent | b09f1c49bf476f4e5414a098b0095933fb6d17ce (diff) | |
download | mariadb-git-3a5e78db2a3f629b0c4512ec5c0c78659ec6d38a.tar.gz |
#90 fix race conditions in tests that cause sporadic test failures
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; |