0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

fix(nightly): increase wait time for dedupe nightly build (#2177)

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
peusebiu 2024-01-22 19:07:04 +02:00 committed by GitHub
parent 3f97f878fd
commit 7dd1ca353f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -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}
}

View file

@ -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
}