tst_qnetworkreply::httpConnectionCount: tentatively increase timeout

It is failing a bunch on macOS in CI, but not locally.
So just assuming the timings are too tight in CI and increasing
them.

Amends 8de1ed89797cabc883b5651673daa747f6ee9c0e

Change-Id: Icb44fdbd2aa117de7350c5df2e8351bb19c865c4
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 88763730cc9bc5929e0ff2af0a78276636bc91ab)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Mårten Nordheim 2024-03-18 12:07:00 +01:00 committed by Qt Cherry-pick Bot
parent cdee812bdb
commit 50af22aa8d

View File

@ -6537,7 +6537,7 @@ void tst_QNetworkReply::httpConnectionCount()
// to see if we should upgrade:
const int rampDown = http2Enabled ? 2 : 1;
while (pendingConnectionCount <= 6) {
if (!QTest::qWaitFor(newPendingConnection, pendingConnectionCount >= rampDown ? 1s : 5s))
if (!QTest::qWaitFor(newPendingConnection, pendingConnectionCount >= rampDown ? 3s : 7s))
break;
QTcpSocket *socket = server->nextPendingConnection();
while (socket) {