diff --git a/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 b/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 index c18851308..daaf9cca2 100644 --- a/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 +++ b/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 @@ -6,13 +6,6 @@ param( [string]$HttpStartPath ) -function Exit-OnError() { - # There appears to be a known problem in GitHub Action's `pwsh` shell preventing it from failing fast on an error: - # https://github.com/actions/runner-images/issues/6668#issuecomment-1364540817 - # Therefore, we manually check if there was an error an fail if so. - if (!$LASTEXITCODE.Equals(0)) {exit $LASTEXITCODE} -} - Start-Sleep -Seconds 30 try { @@ -21,7 +14,6 @@ try { Write-Host "Pinging app at $pingUrl to ensure the host is healthy" -ForegroundColor Yellow Invoke-RestMethod -Method Post -Uri "http://localhost:7071/admin/host/ping" Write-Host "Host is healthy!" -ForegroundColor Green - Exit-OnError if ($NoValidation -eq $false) { # Note that any HTTP protocol errors (e.g. HTTP 4xx or 5xx) will cause an immediate failure