To break the loop when found in search_test.go

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
lixiaobing10051267 2016-07-24 11:40:23 +08:00
parent b8a08ddd69
commit 5ac891cc43
1 changed files with 1 additions and 0 deletions

View File

@ -347,6 +347,7 @@ func TestSearchRegistryForImages(t *testing.T) {
expectedResult.IsOfficial == result.IsOfficial &&
expectedResult.StarCount == result.StarCount {
found = true
break
}
}
if !found {