From 7dd1ca353f8b96164aa457b0d883cdd31f0edaf7 Mon Sep 17 00:00:00 2001 From: peusebiu Date: Mon, 22 Jan 2024 19:07:04 +0200 Subject: [PATCH] fix(nightly): increase wait time for dedupe nightly build (#2177) Signed-off-by: Petu Eusebiu --- test/blackbox/helpers_zot.bash | 8 ++++---- test/blackbox/pushpull_running_dedupe.bats | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/test/blackbox/helpers_zot.bash b/test/blackbox/helpers_zot.bash index 4dbe0dd1..aa2bde91 100644 --- a/test/blackbox/helpers_zot.bash +++ b/test/blackbox/helpers_zot.bash @@ -42,10 +42,10 @@ function wait_zot_reachable() { local zot_port=${1} local zot_url=http://127.0.0.1:${zot_port}/v2/_catalog curl --connect-timeout 3 \ - --max-time 3 \ - --retry 10 \ - --retry-delay 0 \ - --retry-max-time 120 \ + --max-time 5 \ + --retry 20 \ + --retry-delay 1 \ + --retry-max-time 180 \ --retry-connrefused \ ${zot_url} } diff --git a/test/blackbox/pushpull_running_dedupe.bats b/test/blackbox/pushpull_running_dedupe.bats index 17d758b1..c32a78c6 100644 --- a/test/blackbox/pushpull_running_dedupe.bats +++ b/test/blackbox/pushpull_running_dedupe.bats @@ -120,6 +120,9 @@ function teardown_file() { zot_serve ${ZOT_PATH} ${zot_config_file} + # sleep a bit before running wait_zot_reachable(curl) + sleep 5 + wait_zot_reachable 8080 # deduping will now run in background (task scheduler) while we push images, shouldn't interfere }