1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Added delay/sleep after mysql_kill

This commit is contained in:
holzboote@googlemail.com
2014-05-14 12:20:47 +02:00
parent 84e209e9b0
commit b3c35dfaf9

View File

@@ -39,6 +39,7 @@ static int test_conc83(MYSQL *mysql)
/* 1. Status is inited, so prepare should work */
rc= mysql_kill(mysql, mysql_thread_id(mysql));
sleep(2);
rc= mysql_stmt_prepare(stmt, query, strlen(query));
check_stmt_rc(rc, stmt);
@@ -46,6 +47,7 @@ static int test_conc83(MYSQL *mysql)
/* 2. Status is prepared, second prepare should fail */
rc= mysql_kill(mysql, mysql_thread_id(mysql));
sleep(2);
rc= mysql_stmt_prepare(stmt, query, strlen(query));
FAIL_IF(!rc, "Error expected");