To break the loop when found in search_test.go

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
Upstream-commit: 5ac891cc43c554cdf1a9b2b1be856c4efbd35467
Component: engine
This commit is contained in:
lixiaobing10051267
2016-07-24 11:40:23 +08:00
parent 7319473b2d
commit e986294c34

View File

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