mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #24976 from lixiaobing10051267/masterFound2
To break the loop when found in search_test.go
This commit is contained in:
commit
803e2f285a
1 changed files with 1 additions and 0 deletions
|
@ -347,6 +347,7 @@ func TestSearchRegistryForImages(t *testing.T) {
|
||||||
expectedResult.IsOfficial == result.IsOfficial &&
|
expectedResult.IsOfficial == result.IsOfficial &&
|
||||||
expectedResult.StarCount == result.StarCount {
|
expectedResult.StarCount == result.StarCount {
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !found {
|
if !found {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue