Minor updates to the QHttpSocket tests.

This commit is contained in:
Nathan Osman
2015-07-04 20:27:35 -07:00
parent 5deb8264c0
commit 2593263b01

View File

@@ -115,7 +115,6 @@ void TestQHttpSocket::testRedirect()
server.writeRedirect(Path, true);
QTRY_COMPARE(client.statusCode(), static_cast<int>(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);
}