From 1c60b7cd44ba7d71441d0bca8375a4b4ee7e5ad0 Mon Sep 17 00:00:00 2001
From: guangxuli
Date: Wed, 21 Sep 2016 13:52:23 +0800
Subject: [PATCH] if item name is equal to kubernetes break the loop
---
test/integration/master/master_test.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/integration/master/master_test.go b/test/integration/master/master_test.go
index c3a39f201c8..23bbadb3193 100644
--- a/test/integration/master/master_test.go
+++ b/test/integration/master/master_test.go
@@ -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 {