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

@@ -219,6 +219,7 @@ func TestPetSetControllerBlocksScaling(t *testing.T) {
for _, p := range fc.getPodList() {
if p.Name == deletedPod.Name {
found = true
break
}
}
if !found {