1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

View file

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