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

Pick-to: 6.7
Change-Id: Icb44fdbd2aa117de7350c5df2e8351bb19c865c4
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Mårten Nordheim 2024-03-18 12:07:00 +01:00
parent 5ed736b053
commit 88763730cc

View File

@ -6554,7 +6554,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) {