diff --git a/kernel_lite/net_posix/src/ActsNetTest.cpp b/kernel_lite/net_posix/src/ActsNetTest.cpp index 055413ad0165359dffced6c9ad6ec9386e100baa..faec6e8fbe19cba2dd593bfbeb0956aad0adfe7a 100755 --- a/kernel_lite/net_posix/src/ActsNetTest.cpp +++ b/kernel_lite/net_posix/src/ActsNetTest.cpp @@ -692,6 +692,8 @@ HWTEST_F(ActsNetTest, testTcpConcurrentConnect, Function | MediumTest | Level2) ret = pthread_create(&cliThree, nullptr, TcpClientOnlyConnectTask, &tIdThree); EXPECT_EQ(0, ret); + ret = pthread_join(srv, nullptr); + EXPECT_EQ(0, ret); ret = pthread_join(cliOne, nullptr); EXPECT_EQ(0, ret); printf("[******]testTcpConnect thread[1] finish!\n");