@@ -21,7 +21,7 @@ import (
2121 "github.com/docker/docker/api/types/image"
2222 "github.com/docker/docker/api/types/network"
2323 "github.com/docker/docker/pkg/jsonmessage"
24- specs "github.com/opencontainers/image-spec/specs-go/v1"
24+ ocispec "github.com/opencontainers/image-spec/specs-go/v1"
2525 "github.com/spf13/pflag"
2626 "gotest.tools/v3/assert"
2727 is "gotest.tools/v3/assert/cmp"
@@ -57,7 +57,7 @@ func TestRunValidateFlags(t *testing.T) {
5757
5858func TestRunLabel (t * testing.T ) {
5959 fakeCLI := test .NewFakeCli (& fakeClient {
60- createContainerFunc : func (_ * container.Config , _ * container.HostConfig , _ * network.NetworkingConfig , _ * specs .Platform , _ string ) (container.CreateResponse , error ) {
60+ createContainerFunc : func (_ * container.Config , _ * container.HostConfig , _ * network.NetworkingConfig , _ * ocispec .Platform , _ string ) (container.CreateResponse , error ) {
6161 return container.CreateResponse {
6262 ID : "id" ,
6363 }, nil
@@ -80,7 +80,7 @@ func TestRunAttach(t *testing.T) {
8080 var conn net.Conn
8181 attachCh := make (chan struct {})
8282 fakeCLI := test .NewFakeCli (& fakeClient {
83- createContainerFunc : func (_ * container.Config , _ * container.HostConfig , _ * network.NetworkingConfig , _ * specs .Platform , _ string ) (container.CreateResponse , error ) {
83+ createContainerFunc : func (_ * container.Config , _ * container.HostConfig , _ * network.NetworkingConfig , _ * ocispec .Platform , _ string ) (container.CreateResponse , error ) {
8484 return container.CreateResponse {
8585 ID : "id" ,
8686 }, nil
@@ -151,7 +151,7 @@ func TestRunAttachTermination(t *testing.T) {
151151 killCh := make (chan struct {})
152152 attachCh := make (chan struct {})
153153 fakeCLI := test .NewFakeCli (& fakeClient {
154- createContainerFunc : func (_ * container.Config , _ * container.HostConfig , _ * network.NetworkingConfig , _ * specs .Platform , _ string ) (container.CreateResponse , error ) {
154+ createContainerFunc : func (_ * container.Config , _ * container.HostConfig , _ * network.NetworkingConfig , _ * ocispec .Platform , _ string ) (container.CreateResponse , error ) {
155155 return container.CreateResponse {
156156 ID : "id" ,
157157 }, nil
@@ -229,7 +229,7 @@ func TestRunPullTermination(t *testing.T) {
229229 attachCh := make (chan struct {})
230230 fakeCLI := test .NewFakeCli (& fakeClient {
231231 createContainerFunc : func (config * container.Config , hostConfig * container.HostConfig , networkingConfig * network.NetworkingConfig ,
232- platform * specs .Platform , containerName string ,
232+ platform * ocispec .Platform , containerName string ,
233233 ) (container.CreateResponse , error ) {
234234 return container.CreateResponse {}, errors .New ("shouldn't try to create a container" )
235235 },
@@ -332,7 +332,7 @@ func TestRunCommandWithContentTrustErrors(t *testing.T) {
332332 createContainerFunc : func (config * container.Config ,
333333 hostConfig * container.HostConfig ,
334334 networkingConfig * network.NetworkingConfig ,
335- platform * specs .Platform ,
335+ platform * ocispec .Platform ,
336336 containerName string ,
337337 ) (container.CreateResponse , error ) {
338338 return container.CreateResponse {}, errors .New ("shouldn't try to pull image" )
0 commit comments