diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/network/access/http2/tst_http2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/network/access/http2/tst_http2.cpp b/tests/auto/network/access/http2/tst_http2.cpp index 645d28ccb3..e7609b3243 100644 --- a/tests/auto/network/access/http2/tst_http2.cpp +++ b/tests/auto/network/access/http2/tst_http2.cpp @@ -540,6 +540,8 @@ void tst_Http2::clientPrefaceError() void tst_Http2::serverSettingsAcked() { serverGotSettingsACK = true; + if (!nRequests) + stopEventLoop(); } void tst_Http2::invalidFrame() @@ -592,7 +594,7 @@ void tst_Http2::replyFinished() QCOMPARE(reply->error(), QNetworkReply::NoError); --nRequests; - if (!nRequests) + if (!nRequests && serverGotSettingsACK) stopEventLoop(); } |