mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Check all places to break the loop when object found
This commit is contained in:
@@ -613,6 +613,7 @@ func TestSyncPodCreateNetAndContainer(t *testing.T) {
|
||||
for _, c := range fakeDocker.RunningContainerList {
|
||||
if c.Image == "pod_infra_image" && strings.HasPrefix(c.Names[0], "/k8s_POD") {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
|
||||
Reference in New Issue
Block a user