mirror of
https://github.com/moby/moby.git
synced 2025-07-29 07:21:35 +03:00
Migrate some calls to new client function
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@ -1372,7 +1372,8 @@ func (s *DockerSuite) TestContainerAPICreateNoHostConfig118(c *check.C) {
|
||||
Image: "busybox",
|
||||
}
|
||||
|
||||
cli, err := request.NewEnvClientWithVersion("v1.18")
|
||||
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithVersion("v1.18"))
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
||||
_, err = cli.ContainerCreate(context.Background(), &config, &containertypes.HostConfig{}, &networktypes.NetworkingConfig{}, "")
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
Reference in New Issue
Block a user