mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types/system: use netip types where appropriate
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
cc082add87
commit
2da472b1a5
@@ -1,8 +1,10 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"net/netip"
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
"github.com/moby/moby/api/types/build"
|
||||
containertypes "github.com/moby/moby/api/types/container"
|
||||
"github.com/moby/moby/api/types/image"
|
||||
@@ -258,7 +260,7 @@ func TestDiskUsage(t *testing.T) {
|
||||
|
||||
du, err := apiClient.DiskUsage(ctx, tc.options)
|
||||
assert.NilError(t, err)
|
||||
assert.DeepEqual(t, du, tc.expected)
|
||||
assert.DeepEqual(t, du, tc.expected, cmpopts.EquateComparable(netip.Addr{}, netip.Prefix{}))
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user