Merge pull request #24976 from lixiaobing10051267/masterFound2

To break the loop when found in search_test.go
Upstream-commit: 803e2f285a974b23db2b042846d33e98c5ed53d6
Component: engine
This commit is contained in:
Alexander Morozov
2016-07-28 16:59:46 -07:00
committed by GitHub

View File

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