api/types/system: use netip types where appropriate

Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
Cory Snider
2025-09-10 12:13:23 -04:00
committed by Sebastiaan van Stijn
parent cc082add87
commit 2da472b1a5
4 changed files with 10 additions and 4 deletions

View File

@@ -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{}))
})
}
})