1
0
mirror of https://github.com/moby/moby.git synced 2025-12-06 07:41:18 +03:00

Merge pull request #38486 from thaJeztah/dont_use_deprecated_envclient

Remove use of deprecated client.NewEnvClient()
This commit is contained in:
Sebastiaan van Stijn
2019-01-05 11:23:19 +01:00
committed by GitHub
26 changed files with 90 additions and 90 deletions

View File

@@ -1568,7 +1568,7 @@ func (s *DockerSuite) TestRunWithNanoCPUs(c *check.C) {
out, _ := dockerCmd(c, "run", "--cpus", "0.5", "--name", "test", "busybox", "sh", "-c", fmt.Sprintf("cat %s && cat %s", file1, file2))
c.Assert(strings.TrimSpace(out), checker.Equals, "50000\n100000")
clt, err := client.NewEnvClient()
clt, err := client.NewClientWithOpts(client.FromEnv)
c.Assert(err, checker.IsNil)
inspect, err := clt.ContainerInspect(context.Background(), "test")
c.Assert(err, checker.IsNil)