TestDaemonEvents: use is.Contains() for easier debugging

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-10-09 18:54:17 +02:00
parent 0e0ab58a96
commit 8a3e8ac017
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import (
"github.com/docker/docker/integration-cli/cli/build"
"golang.org/x/sys/unix"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
// #5979
@ -434,7 +435,7 @@ func (s *DockerDaemonSuite) TestDaemonEvents(c *testing.T) {
}
for _, s := range expectedSubstrings {
assert.Check(c, strings.Contains(out, s))
assert.Check(c, is.Contains(out, s))
}
}