Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
| ... | ... |
@@ -5,6 +5,7 @@ import ( |
| 5 | 5 |
|
| 6 | 6 |
ocispec "github.com/opencontainers/image-spec/specs-go/v1" |
| 7 | 7 |
"gotest.tools/v3/assert" |
| 8 |
+ is "gotest.tools/v3/assert/cmp" |
|
| 8 | 9 |
) |
| 9 | 10 |
|
| 10 | 11 |
func TestEncodePlatforms(t *testing.T) {
|
| ... | ... |
@@ -50,7 +51,7 @@ func TestEncodePlatforms(t *testing.T) {
|
| 50 | 50 |
t.Run(tc.doc, func(t *testing.T) {
|
| 51 | 51 |
out, err := encodePlatforms(tc.platforms...) |
| 52 | 52 |
assert.NilError(t, err) |
| 53 |
- assert.DeepEqual(t, out, tc.expected) |
|
| 53 |
+ assert.Check(t, is.DeepEqual(out, tc.expected)) |
|
| 54 | 54 |
}) |
| 55 | 55 |
} |
| 56 | 56 |
} |