diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-05 22:36:08 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-05 22:36:08 +0100 |
commit | 321cf652cbd9b7533dfa6a18766def01e7134541 (patch) | |
tree | 685e03dd2c9ed9cedfa76899689b03d75f870502 /mysql-test/t/loadxml.test | |
parent | 401b0bd0be88c90d61d05bd9ed57709207b976aa (diff) | |
download | mariadb-git-321cf652cbd9b7533dfa6a18766def01e7134541.tar.gz |
Fix buggy test that fails due to "error: packets out of order" message in the trace file
when EXTRA_DEBUG is enabled. The reason for the error message is that a query
was issued with send, but response was not read with reap.
Diffstat (limited to 'mysql-test/t/loadxml.test')
-rw-r--r-- | mysql-test/t/loadxml.test | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mysql-test/t/loadxml.test b/mysql-test/t/loadxml.test index 8b9c1bd1b0d..84a89a332a0 100644 --- a/mysql-test/t/loadxml.test +++ b/mysql-test/t/loadxml.test @@ -77,15 +77,17 @@ sleep 3; connection default; -sleep 1; --disable_query_log --eval kill $PSEUDO_THREAD_ID -sleep 2; ---enable_query_log - +connection addconroot; +# Read response from connection to avoid packets out-of-order when disconnecting +# Note, that connection can already be dead due to previously issued kill +--error 0,2013 +--reap disconnect addconroot; - +connection default; +--enable_query_log # # Clean up # |