Skip to content

Commit

Permalink
try to fix timeout3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
freddy77 committed Dec 7, 2024
1 parent aaad9c2 commit 063b075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/odbc/unittests/timeout3.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ main(void)
tmp[0] = 0;
CHKGetDiagRec(SQL_HANDLE_DBC, odbc_conn, 1, sqlstate, NULL, tmp, TDS_VECTOR_SIZE(tmp), NULL, "SI");
odbc_disconnect();
tds_thread_join(fake_thread, NULL);
tds_mutex_lock(&mtx);
CLOSESOCKET(fake_sock);
tds_mutex_unlock(&mtx);
tds_thread_join(fake_thread, NULL);

printf("Message: %s - %s\n", C(sqlstate), C(tmp));
if (strcmp(C(sqlstate), "HYT00") || !strstr(C(tmp), "Timeout")) {
Expand Down

0 comments on commit 063b075

Please sign in to comment.