Skip to content

Commit

Permalink
NO-JIRA fix test short timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jCOTINEAU authored and antoine-vigneau-sonarsource committed Feb 2, 2024
1 parent ba5b77c commit 221f6f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ require() {
wait_for_sonarqube() {
local image=$1 i web_up=no sonarqube_up=no

for ((i = 0; i < 10; i++)); do
for ((i = 0; i < 15; i++)); do
info "$image: waiting for web server to start ..."
if curl -sI localhost:$port | grep '^HTTP/.* 200'; then
web_up=yes
Expand All @@ -53,7 +53,7 @@ wait_for_sonarqube() {

[[ $web_up = yes ]] || return 1

for ((i = 0; i < 20; i++)); do
for ((i = 0; i < 30; i++)); do
info "$image: waiting for sonarqube to be ready ..."
if curl -s localhost:$port/api/system/status | grep '"status":"UP"'; then
sonarqube_up=yes
Expand Down

0 comments on commit 221f6f9

Please sign in to comment.