lib: retry longer to allow for slower machines

The end-to-end tests moved to a slower machine recently. When the
daily releases are build, the end-to-end all run simultaneously and
slow down the machine to a point where it will take more than 30
seconds for a Forgejo instance to start.

Be more forgiving and let it retry for a minute.

https://code.forgejo.org/forgejo/end-to-end/actions/runs/1857/jobs/6
This commit is contained in:
Earl Warren 2024-11-10 08:37:44 +01:00
parent 49e99f95d4
commit aca70a3e54
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -73,7 +73,7 @@ function dependencies() {
function retry() { function retry() {
rm -f $DIR/wait-for.out rm -f $DIR/wait-for.out
success=false success=false
for delay in 1 1 5 5 15; do for delay in 1 1 5 5 15 15 15; do
if "$@" >>$DIR/wait-for.out 2>&1; then if "$@" >>$DIR/wait-for.out 2>&1; then
success=true success=true
break break