Set flat 30-second wait time between test retries
This commit is contained in:
@@ -19,7 +19,7 @@ function Git-Pull {
|
|||||||
return $LASTEXITCODE -eq 0
|
return $LASTEXITCODE -eq 0
|
||||||
}
|
}
|
||||||
|
|
||||||
$waitTime = 15
|
$waitTime = 30
|
||||||
while ($true) {
|
while ($true) {
|
||||||
python -m pip install -r requirements.txt
|
python -m pip install -r requirements.txt
|
||||||
|
|
||||||
@@ -29,7 +29,6 @@ while ($true) {
|
|||||||
Write-Host "Tests failed. Attempting git pull and waiting $waitTime seconds before next attempt..."
|
Write-Host "Tests failed. Attempting git pull and waiting $waitTime seconds before next attempt..."
|
||||||
Git-Pull
|
Git-Pull
|
||||||
Start-Sleep -Seconds $waitTime
|
Start-Sleep -Seconds $waitTime
|
||||||
$waitTime *= 2
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +40,6 @@ while ($true) {
|
|||||||
|
|
||||||
if (Git-Pull) {
|
if (Git-Pull) {
|
||||||
Write-Host "Git pull successful. Restarting Python script..."
|
Write-Host "Git pull successful. Restarting Python script..."
|
||||||
$waitTime = 15
|
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Git pull failed. Waiting $waitTime seconds before next attempt..."
|
Write-Host "Git pull failed. Waiting $waitTime seconds before next attempt..."
|
||||||
@@ -51,5 +49,4 @@ while ($true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Start-Sleep -Seconds $waitTime
|
Start-Sleep -Seconds $waitTime
|
||||||
$waitTime *= 2
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user