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:
parent
b8a08ddd69
commit
5ac891cc43
1 changed files with 1 additions and 0 deletions
|
@ -347,6 +347,7 @@ func TestSearchRegistryForImages(t *testing.T) {
|
|||
expectedResult.IsOfficial == result.IsOfficial &&
|
||||
expectedResult.StarCount == result.StarCount {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
|
|
Loading…
Reference in a new issue