From fc82c4e426d540d061934447cc71cf96d8abb869 Mon Sep 17 00:00:00 2001 From: scbedd <45376673+scbedd@users.noreply.github.com> Date: Fri, 5 Nov 2021 12:12:54 -0700 Subject: [PATCH] small bug with the not incrementing due to its location within the while loop --- eng/common/testproxy/docker-start-proxy.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/common/testproxy/docker-start-proxy.ps1 b/eng/common/testproxy/docker-start-proxy.ps1 index 1419cc149635..3489b2b863f1 100644 --- a/eng/common/testproxy/docker-start-proxy.ps1 +++ b/eng/common/testproxy/docker-start-proxy.ps1 @@ -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){