diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2023-03-14 16:23:09 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2023-03-14 16:23:09 +0100 |
commit | 127cd9def1814a4d333c45d36963e171faf4e4c4 (patch) | |
tree | f805b7c7530f6020a8360a2684f00daca98e4d36 /integration/plugin | |
parent | 298739376819b87a90bb87acbbfc6105d1a095cb (diff) | |
download | docker-127cd9def1814a4d333c45d36963e171faf4e4c4.tar.gz |
integration/plugin: fix duplicate import
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration/plugin')
-rw-r--r-- | integration/plugin/common/plugin_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/integration/plugin/common/plugin_test.go b/integration/plugin/common/plugin_test.go index c67af1532b..3c6670a5ee 100644 --- a/integration/plugin/common/plugin_test.go +++ b/integration/plugin/common/plugin_test.go @@ -25,7 +25,6 @@ import ( "github.com/docker/docker/testutil/request" v1 "github.com/opencontainers/image-spec/specs-go/v1" "gotest.tools/v3/assert" - "gotest.tools/v3/assert/cmp" is "gotest.tools/v3/assert/cmp" "gotest.tools/v3/skip" ) @@ -309,7 +308,7 @@ func TestPluginBackCompatMediaTypes(t *testing.T) { var m v1.Manifest assert.NilError(t, json.NewDecoder(rdr).Decode(&m)) - assert.Check(t, cmp.Equal(m.MediaType, images.MediaTypeDockerSchema2Manifest)) - assert.Check(t, cmp.Len(m.Layers, 1)) - assert.Check(t, cmp.Equal(m.Layers[0].MediaType, images.MediaTypeDockerSchema2LayerGzip)) + assert.Check(t, is.Equal(m.MediaType, images.MediaTypeDockerSchema2Manifest)) + assert.Check(t, is.Len(m.Layers, 1)) + assert.Check(t, is.Equal(m.Layers[0].MediaType, images.MediaTypeDockerSchema2LayerGzip)) } |