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:
@ -347,6 +347,7 @@ func TestSearchRegistryForImages(t *testing.T) {
|
||||
expectedResult.IsOfficial == result.IsOfficial &&
|
||||
expectedResult.StarCount == result.StarCount {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
|
||||
Reference in New Issue
Block a user