[KMTEST:TcpIp] Use 10 second timeout value instead of INFINITE (#5586)

* [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 <x86corez@gmail.com>
This commit is contained in:
Timo Kreuzer 2023-08-21 21:46:20 +03:00 committed by GitHub
parent 3a0b53386c
commit e7cb6f4920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();