mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
integration-cli: rename vars that collided with imports
- use apiClient for api-clients to reduce shadowing (also more "accurate") - use "ctr" instead of "container" Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -570,9 +570,9 @@ func (s *DockerCLIVolumeSuite) TestDuplicateMountpointsForVolumesFromAndMounts(c
|
||||
err := os.MkdirAll("/tmp/data", 0755)
|
||||
assert.NilError(c, err)
|
||||
// Mounts is available in API
|
||||
cli, err := client.NewClientWithOpts(client.FromEnv)
|
||||
apiClient, err := client.NewClientWithOpts(client.FromEnv)
|
||||
assert.NilError(c, err)
|
||||
defer cli.Close()
|
||||
defer apiClient.Close()
|
||||
|
||||
config := container.Config{
|
||||
Cmd: []string{"top"},
|
||||
@@ -589,7 +589,7 @@ func (s *DockerCLIVolumeSuite) TestDuplicateMountpointsForVolumesFromAndMounts(c
|
||||
},
|
||||
},
|
||||
}
|
||||
_, err = cli.ContainerCreate(context.Background(), &config, &hostConfig, &network.NetworkingConfig{}, nil, "app")
|
||||
_, err = apiClient.ContainerCreate(context.Background(), &config, &hostConfig, &network.NetworkingConfig{}, nil, "app")
|
||||
|
||||
assert.NilError(c, err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user