[WININET_WINETEST]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 20 Jul 2014 11:19:44 +0000 (11:19 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 20 Jul 2014 11:19:44 +0000 (11:19 +0000)
- Add back work-around for testbot hang lost in winesync.
ROSTESTS-73

svn path=/trunk/; revision=63725

rostests/winetests/wininet/http.c

index b0481c7..bbffe27 100644 (file)
@@ -3143,7 +3143,11 @@ static void test_conn_close(int port)
     SET_EXPECT(INTERNET_STATUS_CONNECTION_CLOSED);
     SET_EXPECT(INTERNET_STATUS_REQUEST_COMPLETE);
     SetEvent(conn_close_event);
+#ifdef ROSTESTS_73_FIXED
     WaitForSingleObject(hCompleteEvent, INFINITE);
+#else /* ROSTESTS_73_FIXED */
+    ok(WaitForSingleObject(hCompleteEvent, 5000) == WAIT_OBJECT_0, "Wait timed out\n");
+#endif /* ROSTESTS_73_FIXED */
     ok(req_error == ERROR_SUCCESS, "req_error = %u\n", req_error);
     CHECK_NOTIFIED(INTERNET_STATUS_CLOSING_CONNECTION);
     CHECK_NOTIFIED(INTERNET_STATUS_CONNECTION_CLOSED);