diff --git a/tests/TestQHttpSocket.cpp b/tests/TestQHttpSocket.cpp index dd6b21e..f3c87b9 100644 --- a/tests/TestQHttpSocket.cpp +++ b/tests/TestQHttpSocket.cpp @@ -115,7 +115,6 @@ void TestQHttpSocket::testRedirect() server.writeRedirect(Path, true); QTRY_COMPARE(client.statusCode(), static_cast(QHttpSocket::MovedPermanently)); - QVERIFY(client.headers().contains("Location")); QCOMPARE(client.headers().value("Location"), Path); } @@ -152,6 +151,7 @@ void TestQHttpSocket::testSignals() } QCOMPARE(bytesWritten, Data.length()); + QTRY_COMPARE(aboutToCloseSpy.count(), 0); server.close(); QTRY_COMPARE(aboutToCloseSpy.count(), 1); }