Commit 39502adc authored by Julian Klemann's avatar Julian Klemann Committed by Alexandre Julliard

httpapi/tests: Move sleep statement.

The mentioned bug randomly occurred after some subsequent patches, so the sleep should happen before GetOverlappedResult is called. Signed-off-by: 's avatarJulian Klemann <jklemann@codeweavers.com> Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 43384527
......@@ -228,10 +228,6 @@ static void test_v1_server(void)
ret = send(s, req_text, strlen(req_text), 0);
ok(ret == strlen(req_text), "send() returned %d.\n", ret);
ret = GetOverlappedResult(queue, &ovl, &ret_size, TRUE);
ok(ret, "Got error %lu.\n", GetLastError());
ok(ret_size > sizeof(*req), "Got size %lu.\n", ret_size);
/* Various versions of Windows (observed on 64-bit Windows 8 and Windows 10
* version 1507, but probably affecting others) suffer from a bug where the
* kernel will report success before completely filling the buffer or
......@@ -239,6 +235,10 @@ static void test_v1_server(void)
* around this. */
Sleep(100);
ret = GetOverlappedResult(queue, &ovl, &ret_size, TRUE);
ok(ret, "Got error %lu.\n", GetLastError());
ok(ret_size > sizeof(*req), "Got size %lu.\n", ret_size);
ok(!req->Flags, "Got flags %#lx.\n", req->Flags);
ok(req->ConnectionId, "Expected nonzero connection ID.\n");
ok(req->RequestId, "Expected nonzero connection ID.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment