From 69c4a4f4a24da33f6c3ea7dd5c067fc1084916a2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 21 Oct 2019 15:49:55 +0200 Subject: [PATCH] integration-cli: make TestServiceLogs less noisy Before: make TEST_FILTER=TestServiceLogs test-integration ... --- PASS: TestDockerSwarmSuite/TestServiceLogs (14.63s) docker_cli_service_logs_test.go:49: log for "TestServiceLogs1": "TestServiceLogs1.1.rjyqj1v08llu@625d614f901a | hello1\n" docker_cli_service_logs_test.go:49: log for "TestServiceLogs2": "TestServiceLogs2.1.fyaljkh9tmp3@625d614f901a | hello2\n" After: make TEST_FILTER=TestServiceLogs test-integration ... --- PASS: TestDockerSwarmSuite/TestServiceLogs (14.63s) Signed-off-by: Sebastiaan van Stijn --- integration-cli/docker_cli_service_logs_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integration-cli/docker_cli_service_logs_test.go b/integration-cli/docker_cli_service_logs_test.go index 9170878377..5ee8806522 100644 --- a/integration-cli/docker_cli_service_logs_test.go +++ b/integration-cli/docker_cli_service_logs_test.go @@ -46,8 +46,7 @@ func (s *DockerSwarmSuite) TestServiceLogs(c *testing.T) { for name, message := range services { out, err := d.Cmd("service", "logs", name) assert.NilError(c, err) - c.Logf("log for %q: %q", name, out) - assert.Assert(c, strings.Contains(out, message)) + assert.Assert(c, strings.Contains(out, message), "log for %q: %q", name, out) } }