client/utils_test: use gotest.tools-style asserts

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2025-05-16 19:14:49 +02:00
parent adf7ecc366
commit 9432eff6bc

View File

@@ -5,6 +5,7 @@ import (
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
func TestEncodePlatforms(t *testing.T) {
@@ -50,7 +51,7 @@ func TestEncodePlatforms(t *testing.T) {
t.Run(tc.doc, func(t *testing.T) {
out, err := encodePlatforms(tc.platforms...)
assert.NilError(t, err)
assert.DeepEqual(t, out, tc.expected)
assert.Check(t, is.DeepEqual(out, tc.expected))
})
}
}