Browse code

TestDaemonEvents: use is.Contains() for easier debugging

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/10 01:54:17
Showing 1 changed files
... ...
@@ -18,6 +18,7 @@ import (
18 18
 	"github.com/docker/docker/integration-cli/cli/build"
19 19
 	"golang.org/x/sys/unix"
20 20
 	"gotest.tools/assert"
21
+	is "gotest.tools/assert/cmp"
21 22
 )
22 23
 
23 24
 // #5979
... ...
@@ -434,7 +435,7 @@ func (s *DockerDaemonSuite) TestDaemonEvents(c *testing.T) {
434 434
 	}
435 435
 
436 436
 	for _, s := range expectedSubstrings {
437
-		assert.Check(c, strings.Contains(out, s))
437
+		assert.Check(c, is.Contains(out, s))
438 438
 	}
439 439
 }
440 440