diff options
author | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-12 16:10:12 +0100 |
---|---|---|
committer | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-12 16:10:12 +0100 |
commit | 54cfdd7065630b67ce2452a4b3d1d6741f07310d (patch) | |
tree | 143d2ba88952013ae8bac976bb7c16323625e223 | |
parent | Merge pull request 'Update code.forgejo.org/oci/alpine Docker tag to v3.20' (... (diff) | |
parent | tests: it make take time for Forgejo to come up (diff) | |
download | forgejo-runner-54cfdd7065630b67ce2452a4b3d1d6741f07310d.tar.xz forgejo-runner-54cfdd7065630b67ce2452a4b3d1d6741f07310d.zip |
Merge pull request 'tests: it make take time for Forgejo to come up' (#329) from earl-warren/runner:wip-test-retry into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/329
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
-rw-r--r-- | .forgejo/workflows/test.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 19d79b7..42dd972 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -54,8 +54,8 @@ jobs: - name: check the forgejo server is responding run: | apt-get update -qq - apt-get install -y -qq jq curl - test $FORGEJO_ADMIN_USER = $(curl -sS http://$FORGEJO_ADMIN_USER:$FORGEJO_ADMIN_PASSWORD@$FORGEJO_HOST_PORT/api/v1/user | jq --raw-output .login) + apt-get install -y -qq jq curl retry + retry --delay=1 --times=60 bash -c 'test $FORGEJO_ADMIN_USER = $(curl -sS http://$FORGEJO_ADMIN_USER:$FORGEJO_ADMIN_PASSWORD@$FORGEJO_HOST_PORT/api/v1/user | jq --raw-output .login)' - run: make FORGEJO_URL=http://$FORGEJO_HOST_PORT test |