fixed unit test intermittent failure

This commit is contained in:
Hideki Miyazaki
2021-05-06 15:40:24 +09:00
parent 0539b99c86
commit 93f04543b0

View File

@ -4291,9 +4291,9 @@ static void test_wolfSSL_CTX_verifyDepth_ServerClient(void)
client_args.argc = 2;
test_client_verifyDepth(&client_args);
join_thread(serverThread);
AssertIntEQ(client_args.return_code, TEST_SUCCESS);
AssertIntEQ(server_args.return_code, TEST_SUCCESS);
join_thread(serverThread);
}
/* test case 2
@ -4309,9 +4309,9 @@ static void test_wolfSSL_CTX_verifyDepth_ServerClient(void)
client_args.argc = 0;
test_client_verifyDepth(&client_args);
join_thread(serverThread);
AssertIntEQ(client_args.return_code, TEST_SUCCESS);
AssertIntEQ(server_args.return_code, TEST_SUCCESS);
join_thread(serverThread);
}
/* test case 3
* verify depth is zero, number of peer's chain is 2
@ -4325,9 +4325,9 @@ static void test_wolfSSL_CTX_verifyDepth_ServerClient(void)
client_args.argc = -1;
test_client_verifyDepth(&client_args);
join_thread(serverThread);
AssertIntEQ(client_args.return_code, TEST_FAIL);
AssertIntEQ(server_args.return_code, TEST_FAIL);
join_thread(serverThread);
}
FreeTcpReady(&ready);