reduce sleep time in e2e between http calls (#994)

* reduce sleep time

* Check for version faster

* sleep to 1 sec to reduce hits

* Update scripts
This commit is contained in:
Manu Gupta
2018-12-18 03:52:57 -08:00
committed by Michal Pristas
parent ef3d0130f6
commit 81547dd19e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -49,10 +49,10 @@ try {
$proxyUp = $false
do {
try {
$proxyUp = (Invoke-WebRequest -Method GET -Uri http://localhost:3000/healthz).StatusCode -eq "200"
$proxyUp = (Invoke-WebRequest -Method GET -Uri http://localhost:3000/readyz).StatusCode -eq "200"
}
catch {
Start-Sleep -Seconds 5
Start-Sleep -Seconds 1
}
} while(-not $proxyUp)
+1 -1
View File
@@ -41,7 +41,7 @@ export GO111MODULE=on
cd $REPO_DIR/cmd/proxy
pkill athens-proxy || true # cleanup proxy if it is running
go build -mod=vendor -o athens-proxy && ./athens-proxy &
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:3000)" != "200" ]]; do sleep 5; done
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:3000/readyz)" != "200" ]]; do sleep 1; done
# Clone our test repo
TEST_SOURCE=${TMPDIR}/happy-path