Increase sleep time before Squid health check on Windows

This commit is contained in:
Filipe PINTO 2023-11-09 11:38:42 +01:00 committed by hurl-bot
parent 4ab82d1bf7
commit 11513b4307
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D

View File

@ -39,7 +39,7 @@ write-output "cache deny all" "cache_log /dev/null" "access_log /dev/null" "http
C:\Squid\bin\squid -k kill 2>&1 || true
C:\Squid\bin\squid -d 2 -N -f squid.conf 2>&1 > build\proxy.log &
if ($LASTEXITCODE) { Throw }
sleep 5
sleep 30
if (netstat -ano | Select-String LISTENING | Select-string 0.0.0.0:3128) {write-host -foregroundcolor Green "proxy is up"} else {write-host -foregroundcolor Red "proxy is down" ; cat build\proxy.log ; exit 1}
cd $actual_dir