mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #51246 from thaJeztah/volume_list
client: rename VolumeListResult.List to VolumeListResult.Items
This commit is contained in:
@@ -50,11 +50,10 @@ func TestVolumesCreateAndList(t *testing.T) {
|
||||
|
||||
res, err := apiClient.VolumeList(ctx, client.VolumeListOptions{})
|
||||
assert.NilError(t, err)
|
||||
volList := res.List
|
||||
assert.Assert(t, len(volList.Volumes) > 0)
|
||||
assert.Assert(t, len(res.Items.Volumes) > 0)
|
||||
|
||||
volumes := volList.Volumes[:0]
|
||||
for _, v := range volList.Volumes {
|
||||
volumes := res.Items.Volumes[:0]
|
||||
for _, v := range res.Items.Volumes {
|
||||
if v.Name == namedV.Name {
|
||||
volumes = append(volumes, v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user