From 6b187afaf8d00ccdb80e2fe8930db3dd09f4ec3f Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Mon, 16 Dec 2024 15:54:22 -0800 Subject: [PATCH] a temp release fix --- tests/socket_test.c | 3 +++ tests/tls_handler_test.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/socket_test.c b/tests/socket_test.c index 42d7b5592..f7ff25b4a 100644 --- a/tests/socket_test.c +++ b/tests/socket_test.c @@ -1170,6 +1170,9 @@ static int s_test_outgoing_tcp_sock_error(struct aws_allocator *allocator, void cleanup: aws_socket_clean_up(&outgoing); aws_event_loop_destroy(event_loop); + + // wait for socket ref count drop and released + aws_thread_current_sleep(5000000000); return result; } AWS_TEST_CASE(outgoing_tcp_sock_error, s_test_outgoing_tcp_sock_error) diff --git a/tests/tls_handler_test.c b/tests/tls_handler_test.c index 2e0dbda42..db1ee9888 100644 --- a/tests/tls_handler_test.c +++ b/tests/tls_handler_test.c @@ -904,7 +904,7 @@ static int s_tls_channel_shutdown_with_cache_test_helper(struct aws_allocator *a ASSERT_SUCCESS(s_tls_channel_server_client_tester_cleanup()); // wait for socket ref count drop and released - aws_thread_current_sleep(3000000000); + aws_thread_current_sleep(5000000000); return AWS_OP_SUCCESS; }