Skip to content

Commit

Permalink
some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid committed Oct 1, 2024
1 parent d02228f commit 3ea3e45
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3ea3e45

Please sign in to comment.