Merge pull request #1140 from grouville/fix/ci

CI: Fix infinite loop + fix issue
This commit is contained in:
Andrea Luzzardi 2021-11-17 12:45:55 -08:00 committed by GitHub
commit 1b401dbc86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,11 +22,12 @@ setup() {
dagger --project "$DAGGER_SANDBOX" -e 'local' up dagger --project "$DAGGER_SANDBOX" -e 'local' up
until docker inspect --format "{{json .State.Status }}" todoapp | grep -m 1 "running"; do sleep 1 ; done SECONDS=0
while [[ "$(docker inspect --format '{{json .State.Status }}' todoapp | grep -m 1 'running')" != "running" && $SECONDS -lt 45 ]]; do sleep 1 ; done
run curl -f -LI http://localhost:8080 run curl -f -LI http://localhost:8080
assert_output --partial '200 OK' assert_output --partial '200 OK'
docker stop todoapp && docker rm todoapp docker stop todoapp && docker rm todoapp
docker stop registry && docker rm registry docker stop registry-local && docker rm registry-local
} }
@test "doc-1004-first-env" { @test "doc-1004-first-env" {