if item name is equal to kubernetes break the loop

pull/6/head
guangxuli 2016-09-21 13:52:23 +08:00
parent d323fed024
commit 1c60b7cd44
1 changed files with 1 additions and 0 deletions

View File

@ -398,6 +398,7 @@ func TestMasterService(t *testing.T) {
for i := range svcList.Items {
if svcList.Items[i].Name == "kubernetes" {
found = true
break
}
}
if found {