Fix formatting

This commit is contained in:
Caleb Woodbine 2020-05-27 08:34:03 +12:00
parent b9c934102b
commit 9a77a00c7c

View File

@ -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)