diff --git a/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 b/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 index 866be8009..a90dda4f4 100644 --- a/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 +++ b/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 @@ -20,7 +20,7 @@ Do { Write-Host "Starting the Functions host..." -ForegroundColor Yellow # The '&' operator is used to run the command in the background - cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated && func host start --port 7071 *> Debug.txt & + cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated && func host start --port 7071 >> Debug.txt & Write-Host "Waiting for the Functions host to start up..." -ForegroundColor Yellow Start-Sleep -Seconds 60 @@ -62,9 +62,6 @@ Do { Start-Sleep -Seconds 2 $retryCount = $retryCount + 1 - if ($success -eq $false) { - throw "Orchestration didn't complete in time! :(" - } } catch { Write-Host "An error occurred:" -ForegroundColor Red Write-Host $_ -ForegroundColor Red @@ -82,6 +79,8 @@ Do { Start-Sleep -Seconds 40 } while (($testIsRunning -eq $true) -and ($retryCount -lt 65)) - +if ($success -eq $false) { + throw "Orchestration didn't complete in time! :(" +} Write-Host "Success!" -ForegroundColor Green \ No newline at end of file