Browse code

To break the loop when found in search_test.go

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>

lixiaobing10051267 authored on 2016/07/24 12:40:23
Showing 1 changed files
... ...
@@ -347,6 +347,7 @@ func TestSearchRegistryForImages(t *testing.T) {
347 347
 					expectedResult.IsOfficial == result.IsOfficial &&
348 348
 					expectedResult.StarCount == result.StarCount {
349 349
 					found = true
350
+					break
350 351
 				}
351 352
 			}
352 353
 			if !found {