Check all places to break the loop when object found

This commit is contained in:
lixiaobing10051267
2016-07-23 13:49:04 +08:00
parent 0e8d515225
commit be8d081539
5 changed files with 5 additions and 0 deletions

View File

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