From a30530b21a2432a7f12796f3fb0af528a4866149 Mon Sep 17 00:00:00 2001 From: Nathan Osman Date: Mon, 28 Aug 2017 19:47:06 -0700 Subject: [PATCH] Attempt to avoid unusual race condition. --- tests/TestSocket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSocket.cpp b/tests/TestSocket.cpp index 3cdc3b8..5821ba6 100644 --- a/tests/TestSocket.cpp +++ b/tests/TestSocket.cpp @@ -82,7 +82,8 @@ void TestSocket::testProperties() client.sendHeaders(Method, Path, headers); - QTRY_COMPARE(server->method(), QHttpEngine::Socket::POST); + QTRY_VERIFY(server->headersParsed()); + QCOMPARE(server->method(), QHttpEngine::Socket::POST); QCOMPARE(server->rawPath(), Path); QCOMPARE(server->headers(), headers);