From 50af22aa8d647d5468bd763d32eacf10677f05ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Mon, 18 Mar 2024 12:07:00 +0100 Subject: [PATCH] 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 (cherry picked from commit 88763730cc9bc5929e0ff2af0a78276636bc91ab) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp index d3a6f064da2..83741143a0c 100644 --- a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp @@ -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) {