summaryrefslogtreecommitdiff
path: root/mysql-test/t/kill.test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-12-08 17:09:07 +0100
committerunknown <msvensson@neptunus.(none)>2006-12-08 17:09:07 +0100
commit0abeff727d7033ae653cd192d48ab302f069993e (patch)
tree0ed83c38db599dce95f28dd477741702f89df431 /mysql-test/t/kill.test
parent8fc4864ed76247b20258d5234e2d42ed34ae35c9 (diff)
downloadmariadb-git-0abeff727d7033ae653cd192d48ab302f069993e.tar.gz
Bug#19410 Test 'kill' fails on Windows + SCO
mysql-test/t/kill.test: Move the connect of second connection to just before the query to be killed are sent. This introduces less variance since the connect time is not included in the delay we want between send of query and kill.
Diffstat (limited to 'mysql-test/t/kill.test')
-rw-r--r--mysql-test/t/kill.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/t/kill.test b/mysql-test/t/kill.test
index 50c4239b45e..1cf871d5f9f 100644
--- a/mysql-test/t/kill.test
+++ b/mysql-test/t/kill.test
@@ -70,11 +70,14 @@ insert into t2 select id from t1;
create table t3 (kill_id int);
insert into t3 values(connection_id());
+connect (conn2, localhost, root,,);
+connection conn2;
+
+connection conn1;
-- disable_result_log
send select id from t1 where id in (select distinct id from t2);
-- enable_result_log
-connect (conn2, localhost, root,,);
connection conn2;
select ((@id := kill_id) - kill_id) from t3;
-- sleep 1