mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
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:
committed by
Michal Pristas
parent
ef3d0130f6
commit
81547dd19e
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user