mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Automated migration using
gty-migrate-from-testify --ignore-build-tags Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
@@ -11,7 +11,8 @@ import (
|
||||
"github.com/docker/docker/client"
|
||||
"github.com/docker/docker/integration-cli/checker"
|
||||
"github.com/go-check/check"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/gotestyourself/gotestyourself/assert"
|
||||
is "github.com/gotestyourself/gotestyourself/assert/cmp"
|
||||
)
|
||||
|
||||
func (s *DockerSuite) TestInspectAPIContainerResponse(c *check.C) {
|
||||
@@ -115,8 +116,8 @@ func (s *DockerSuite) TestInspectAPIImageResponse(c *check.C) {
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
||||
c.Assert(imageJSON.RepoTags, checker.HasLen, 2)
|
||||
assert.Contains(c, imageJSON.RepoTags, "busybox:latest")
|
||||
assert.Contains(c, imageJSON.RepoTags, "busybox:mytag")
|
||||
assert.Check(c, is.Contains(imageJSON.RepoTags, "busybox:latest"))
|
||||
assert.Check(c, is.Contains(imageJSON.RepoTags, "busybox:mytag"))
|
||||
}
|
||||
|
||||
// #17131, #17139, #17173
|
||||
|
||||
Reference in New Issue
Block a user