mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Fix formatting
This commit is contained in:
parent
b9c934102b
commit
9a77a00c7c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user