From 9a77a00c7c85aeb506327ba0969123d2f0fc6ae1 Mon Sep 17 00:00:00 2001 From: Caleb Woodbine Date: Wed, 27 May 2020 08:34:03 +1200 Subject: [PATCH] Fix formatting --- test/e2e/framework/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index d1f3887d9c8..dc341dd97e3 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -1315,10 +1315,10 @@ retriesLoop: // watchEventsLoop: totalValidWatchEvents := 0 actualWatchEventsHasDelete := false - for watchEventIndex, _ := range expectedWatchEvents { + for watchEventIndex := range expectedWatchEvents { foundExpectedWatchEvent := false ExpectEqual(len(expectedWatchEvents) <= len(actualWatchEvents), true, "Error: actual watch events amount must be greater than or equal to expected watch events amount") - for actualWatchEventIndex, _ := range actualWatchEvents { + for actualWatchEventIndex := range actualWatchEvents { if actualWatchEvents[watchEventIndex].Type == expectedWatchEvents[actualWatchEventIndex].Type { foundExpectedWatchEvent = true } @@ -1329,7 +1329,7 @@ retriesLoop: if foundExpectedWatchEvent == false { errs.Insert(fmt.Sprintf("Watch event %v not found", expectedWatchEvents[watchEventIndex].Type)) } - totalValidWatchEvents ++ + totalValidWatchEvents++ } if actualWatchEventsHasDelete == false { _ = dc.Resource(resourceType).Namespace(namespace).DeleteCollection(testContext, metav1.DeleteOptions{}, listOptions)