From aca70a3e54d2d947dd9f34e5173267072dcbd1fd Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 10 Nov 2024 08:37:44 +0100 Subject: [PATCH] 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 --- lib/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib.sh b/lib/lib.sh index 4b489a0..2c952b8 100644 --- a/lib/lib.sh +++ b/lib/lib.sh @@ -73,7 +73,7 @@ function dependencies() { function retry() { rm -f $DIR/wait-for.out 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 success=true break