diff --git a/cli/command/container/run_test.go b/cli/command/container/run_test.go index fdaa094503b1..81b176d904c9 100644 --- a/cli/command/container/run_test.go +++ b/cli/command/container/run_test.go @@ -227,7 +227,9 @@ func TestRunPullTermination(t *testing.T) { attachCh := make(chan struct{}) fakeCLI := test.NewFakeCli(&fakeClient{ - createContainerFunc: func(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *specs.Platform, containerName string) (container.CreateResponse, error) { + createContainerFunc: func(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, + platform *specs.Platform, containerName string, + ) (container.CreateResponse, error) { select { case <-ctx.Done(): return container.CreateResponse{}, ctx.Err()