tst_QNetworkReply: fix mis-guided use of QSKIP().
QSKIP() causes the whole test to be skipped, where this work-around for a known quirk of the test server only requires skipping a single Q_COMPARE(); the rest of the test passes fine without it. Change-Id: Ie4612bd428f4cb4b342fad908cc2784fbadf069c Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
This commit is contained in:
parent
51f040866b
commit
949aaffb4f
@ -6814,9 +6814,9 @@ void tst_QNetworkReply::authenticationCacheAfterCancel()
|
|||||||
QTestEventLoop::instance().enterLoop(10);
|
QTestEventLoop::instance().enterLoop(10);
|
||||||
QVERIFY(!QTestEventLoop::instance().timeout());
|
QVERIFY(!QTestEventLoop::instance().timeout());
|
||||||
|
|
||||||
if (reply->error() == QNetworkReply::HostNotFoundError)
|
// Work round known quirk in the old test server:
|
||||||
QSKIP("skip because of quirk in the old test server");
|
if (reply->error() != QNetworkReply::HostNotFoundError)
|
||||||
QCOMPARE(reply->error(), QNetworkReply::ProxyAuthenticationRequiredError);
|
QCOMPARE(reply->error(), QNetworkReply::ProxyAuthenticationRequiredError);
|
||||||
QCOMPARE(authSpy.count(), 0);
|
QCOMPARE(authSpy.count(), 0);
|
||||||
QVERIFY(proxyAuthSpy.count() > 0);
|
QVERIFY(proxyAuthSpy.count() > 0);
|
||||||
proxyAuthSpy.clear();
|
proxyAuthSpy.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user