mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client/utils_test: use gotest.tools-style asserts
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -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))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user