From 0991c04be184ae7612d049d305214005b03b00d3 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 18 Jul 2016 14:55:39 +0100 Subject: [PATCH] Don't repeat the program name in healthCheckCommand.String() The name is in both 'Path' and 'Args[0]', so start printing args at 1. Also refactor to avoid an extra space character in the output. --- test/e2e_node/e2e_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/e2e_service.go b/test/e2e_node/e2e_service.go index d8cd0bfb7d8..76f185756ca 100644 --- a/test/e2e_node/e2e_service.go +++ b/test/e2e_node/e2e_service.go @@ -397,5 +397,5 @@ func newHealthCheckCommand(healthCheckUrl string, cmd *exec.Cmd, filename string } func (hcc *healthCheckCommand) String() string { - return fmt.Sprintf("`%s %s` health-check: %s", hcc.Path, strings.Join(hcc.Args, " "), hcc.HealthCheckUrl) + return fmt.Sprintf("`%s` health-check: %s", strings.Join(append([]string{hcc.Path}, hcc.Args[1:]...), " "), hcc.HealthCheckUrl) }