From 79b3df1a5d54daf9a147664516e295f6092a4c3d Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Thu, 9 Nov 2023 17:38:04 +0000 Subject: [PATCH] Increase some timeouts in integration tests They are timing out regularly in GCB waiting for the log server to start. We can see from the output that the server starts shortly after, but these setup hooks have already failed by then and the whole harness is being torn down. Bumping these to take potentially 45s instead of 12s should give us plenty of time. --- integration/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/functions.sh b/integration/functions.sh index b359992cbe..cd4b90f4b1 100755 --- a/integration/functions.sh +++ b/integration/functions.sh @@ -37,10 +37,10 @@ wait_for_server_startup() { # as the test will fail if the server is really not up. local port=$1 set +e - wget -q --spider --retry-connrefused --waitretry=1 -t 10 localhost:${port} + wget -q --spider --retry-connrefused --waitretry=2 -t 20 localhost:${port} # Wait a bit more to give it a chance to become actually available, e.g. if CI # environment is slow. - sleep 2 + sleep 5 wget -q --spider -t 1 localhost:${port} local rc=$? set -e