Skip to content

Commit b3c35df

Browse files
author
holzboote@googlemail.com
committed
Added delay/sleep after mysql_kill
1 parent 84e209e commit b3c35df

File tree

1 file changed

+2
-0
lines changed
  • unittest/libmariadb

1 file changed

+2
-0
lines changed

unittest/libmariadb/ps.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ static int test_conc83(MYSQL *mysql)
3939
/* 1. Status is inited, so prepare should work */
4040

4141
rc= mysql_kill(mysql, mysql_thread_id(mysql));
42+
sleep(2);
4243

4344
rc= mysql_stmt_prepare(stmt, query, strlen(query));
4445
check_stmt_rc(rc, stmt);
4546
diag("Ok");
4647

4748
/* 2. Status is prepared, second prepare should fail */
4849
rc= mysql_kill(mysql, mysql_thread_id(mysql));
50+
sleep(2);
4951

5052
rc= mysql_stmt_prepare(stmt, query, strlen(query));
5153
FAIL_IF(!rc, "Error expected");

0 commit comments

Comments
 (0)