1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Remove use of deprecated client.NewEnvClient()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-01-03 22:49:00 +01:00
parent 2b7e084dc9
commit c8ff5ecc09
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
26 changed files with 90 additions and 90 deletions

View file

@ -309,7 +309,7 @@ func (s *DockerSuite) TestUpdateWithNanoCPUs(c *check.C) {
out, _ = dockerCmd(c, "exec", "top", "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(), "top")
c.Assert(err, checker.IsNil)