To break the loop when found in search_test.go
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn> Upstream-commit: 5ac891cc43c554cdf1a9b2b1be856c4efbd35467 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