Skip to content

Commit

Permalink
small bug with the not incrementing due to its location within the wh…
Browse files Browse the repository at this point in the history
…ile loop
  • Loading branch information
scbedd authored and azure-sdk committed Nov 5, 2021
1 parent 8bdd735 commit fc82c4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eng/common/testproxy/docker-start-proxy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ if ($Mode -eq "start"){
docker container create -v "${root}:${Initial}/etc/testproxy" $LinuxContainerArgs -p 5001:5001 -p 5000:5000 --name $CONTAINER_NAME $SelectedImage

if($LASTEXITCODE -ne 0){
$attempts += 1
Start-Sleep -s 1
continue
}
else {
break
}
$attempts += 1
}

if($LASTEXITCODE -ne 0){
Expand Down

0 comments on commit fc82c4e

Please sign in to comment.