From fb55b4ce9ceeb3261aa3acaf85614e3cd8d0fd57 Mon Sep 17 00:00:00 2001 From: Joel Damata Date: Sat, 5 Oct 2024 16:26:34 -0400 Subject: [PATCH] wait for sonar to start for dce tests as well --- .github/workflows/acceptance-tests-dce.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/acceptance-tests-dce.yml b/.github/workflows/acceptance-tests-dce.yml index 32d8f6c..455e62a 100644 --- a/.github/workflows/acceptance-tests-dce.yml +++ b/.github/workflows/acceptance-tests-dce.yml @@ -33,7 +33,7 @@ jobs: terraform_wrapper: false - name: run acceptance tests run: | - sleep 120 # Testing if sonarqube dce needs more time to start + while [[ "$(curl -s -o /dev/null -w "%{http_code}" admin:admin@sonarqube.dev.local/api/system/info)" != "200" ]]; do echo "waiting for SonarQube to start"; sleep 15; done go test -race -coverprofile=coverage.txt -covermode=atomic ./... env: TF_ACC: 1