From 4552eddabffc43846c9dcbb10f201770fe5df019 Mon Sep 17 00:00:00 2001 From: Ryan Chu Date: Fri, 18 Jan 2019 21:47:19 +0100 Subject: Extend the default retry times of QtNetworkSettings::verifyConnection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently, it is not enough to just retry 10 times (10 seconds) in the CI network. It happens from time to time that a test fails due to server port is unreachable. Especially, the docker containers are running in a virtual machine on Windows and macOS platforms. In such cases, it needs more time to warm up the service depending on the system loading. Change-Id: Ia0234bff2a82988b62f451e20b50671708784008 Reviewed-by: Edward Welbourne Reviewed-by: Jędrzej Nowacki --- tests/auto/network-settings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/network-settings.h b/tests/auto/network-settings.h index 4225ff11c7..f162c3ae9f 100644 --- a/tests/auto/network-settings.h +++ b/tests/auto/network-settings.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2019 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. @@ -143,7 +143,7 @@ public: return true; } - static bool verifyConnection(QString serverName, quint16 port, quint32 retry = 10) + static bool verifyConnection(QString serverName, quint16 port, quint32 retry = 60) { QTcpSocket socket; for (quint32 i = 1; i < retry; i++) { -- cgit v1.2.3