Add flag to retry if connection is refused
Lint Checks / Run linter (pull_request) Successful in 44s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m57s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m20s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m50s
Smoke Test / Run basic test suite (pull_request) Successful in 4m58s

This commit is contained in:
neeraj
2024-04-03 18:33:15 +05:30
committed by prathamesh
parent 95973be5a1
commit 71b6868f68
+2 -2
View File
@@ -32,14 +32,14 @@ set +e
CONTAINER_ID=$(docker run -p 3000:80 -d -e CERC_SCRIPT_DEBUG=$CERC_SCRIPT_DEBUG cerc/test-progressive-web-app:local)
sleep 3
wget -t 7 -O test.before -m http://localhost:3000
wget --tries 7 --retry-connrefused -O test.before -m http://localhost:3000
docker logs $CONTAINER_ID
docker remove -f $CONTAINER_ID
CONTAINER_ID=$(docker run -p 3000:80 -e CERC_WEBAPP_DEBUG=$CHECK -e CERC_SCRIPT_DEBUG=$CERC_SCRIPT_DEBUG -d cerc/test-progressive-web-app:local)
sleep 3
wget -t 7 -O test.after -m http://localhost:3000
wget --tries 7 --retry-connrefused -O test.after -m http://localhost:3000
docker logs $CONTAINER_ID
docker remove -f $CONTAINER_ID