summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2019-08-06 07:50:14 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2019-08-07 18:57:31 +0200
commit36cc171b9314bf77fc84d4273dceb6264aef7134 (patch)
tree3a2d12a58c2c7e5b70718deddaa5df2a50edbf67
parent53a6f7b7836ef5084106ed63f6745c20d663affa (diff)
tst_http2::connectToHost - fix flakiness
some assumptions were incorrect: our test server immediately sends its SETTINGS frame, as a result we have to reply with client preface + SETTINGS(ACK). So QVERIFY(!prefaceOK) was wrong from the beginning and was only passing by pure luck. Change-Id: Ie43f0d4ac41deb0e5339badaae6149a9b2f9d9b3 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--tests/auto/network/access/http2/BLACKLIST3
-rw-r--r--tests/auto/network/access/http2/tst_http2.cpp3
2 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/network/access/http2/BLACKLIST b/tests/auto/network/access/http2/BLACKLIST
deleted file mode 100644
index 8f26c5b89e..0000000000
--- a/tests/auto/network/access/http2/BLACKLIST
+++ /dev/null
@@ -1,3 +0,0 @@
- See qtbase/src/testlib/qtestblacklist.cpp for format
-[connectToHost]
-*
diff --git a/tests/auto/network/access/http2/tst_http2.cpp b/tests/auto/network/access/http2/tst_http2.cpp
index 10dad25337..4b4b8d541a 100644
--- a/tests/auto/network/access/http2/tst_http2.cpp
+++ b/tests/auto/network/access/http2/tst_http2.cpp
@@ -648,9 +648,6 @@ void tst_Http2::connectToHost()
eventLoop.exitLoop();
QCOMPARE(reply->error(), QNetworkReply::NoError);
QVERIFY(reply->isFinished());
- // Nothing must be sent yet:
- QVERIFY(!prefaceOK);
- QVERIFY(!serverGotSettingsACK);
// Nothing received back:
QVERIFY(reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).isNull());
QCOMPARE(reply->readAll().size(), 0);