Commit 1c60b7cd authored by guangxuli's avatar guangxuli

if item name is equal to kubernetes break the loop

parent d323fed0
...@@ -398,6 +398,7 @@ func TestMasterService(t *testing.T) { ...@@ -398,6 +398,7 @@ func TestMasterService(t *testing.T) {
for i := range svcList.Items { for i := range svcList.Items {
if svcList.Items[i].Name == "kubernetes" { if svcList.Items[i].Name == "kubernetes" {
found = true found = true
break
} }
} }
if found { if found {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment