Skip to content

Commit

Permalink
[KMTEST:TcpIp] Use 10 second timeout value instead of INFINITE (#5586)
Browse files Browse the repository at this point in the history
* [KMTEST:TcpIp] Use 10 second timeout value instead of INFINITE

On x64 the test sometimes fails to connect and then times out on the testbot, causing the system to be rebooted.

Co-authored-by: Stanislav Motylkov <[email protected]>
  • Loading branch information
2 people authored and errortek committed Sep 7, 2023
1 parent c42c27f commit 269c674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/rostests/kmtests/tcpip/TcpIp_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ START_TEST(TcpIpConnect)
Error = KmtSendToDriver(IOCTL_TEST_CONNECT);
ok_eq_ulong(Error, ERROR_SUCCESS);

WaitForSingleObject(AcceptThread, INFINITE);
Error = WaitForSingleObject(AcceptThread, 10 * 1000);
ok(Error == WAIT_OBJECT_0, "AcceptThread timed out\n");

UnloadTcpIpTestDriver();

Expand Down

0 comments on commit 269c674

Please sign in to comment.