From a81a5beb27ca68be58324a841bcfbc10216344e6 Mon Sep 17 00:00:00 2001 From: Nilesh Choudhary <107404295+4gust@users.noreply.github.com> Date: Tue, 26 Nov 2024 12:49:59 +0000 Subject: [PATCH] Update apps/managedidentity/managedidentity_test.go Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com> --- apps/managedidentity/managedidentity_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/managedidentity/managedidentity_test.go b/apps/managedidentity/managedidentity_test.go index 04534676..e9f7d88c 100644 --- a/apps/managedidentity/managedidentity_test.go +++ b/apps/managedidentity/managedidentity_test.go @@ -319,8 +319,7 @@ func Test_RetryPolicy_For_AcquireToken(t *testing.T) { if errorRetryCounter != 1 { t.Fatalf("expected Number of retry of 1, got %d", errorRetryCounter) } - } else { - if errorRetryCounter != testCase.numberOfFails && testCase.numberOfFails < 3 { + } else if errorRetryCounter != testCase.numberOfFails && testCase.numberOfFails < 3 { t.Fatalf("expected Number of retry of %d, got %d", testCase.numberOfFails, errorRetryCounter) } }