mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client/image_remove&search: Wrap options and result
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
committed by
Austin Vazquez
parent
b3974f07f5
commit
347693a580
@@ -97,7 +97,7 @@ func TestImageSearchWithPrivilegedFuncNoError(t *testing.T) {
|
||||
PrivilegeFunc: privilegeFunc,
|
||||
})
|
||||
assert.NilError(t, err)
|
||||
assert.Check(t, is.Len(results, 1))
|
||||
assert.Check(t, is.Len(results.Items, 1))
|
||||
}
|
||||
|
||||
func TestImageSearchWithoutErrors(t *testing.T) {
|
||||
@@ -135,5 +135,5 @@ func TestImageSearchWithoutErrors(t *testing.T) {
|
||||
Filters: make(Filters).Add("is-automated", "true").Add("stars", "3"),
|
||||
})
|
||||
assert.NilError(t, err)
|
||||
assert.Check(t, is.Len(results, 1))
|
||||
assert.Check(t, is.Len(results.Items, 1))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user