From 59c5f6e35b5b230f24fd887000ec5c8d35cc0565 Mon Sep 17 00:00:00 2001 From: Albin Kerouanton Date: Wed, 25 Oct 2023 10:25:00 +0200 Subject: [PATCH] integration-cli: mark dockerCmdWithFail as an helper function Signed-off-by: Albin Kerouanton --- integration-cli/docker_cli_netmode_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/integration-cli/docker_cli_netmode_test.go b/integration-cli/docker_cli_netmode_test.go index 5756a06360..61c4356939 100644 --- a/integration-cli/docker_cli_netmode_test.go +++ b/integration-cli/docker_cli_netmode_test.go @@ -31,6 +31,7 @@ func (s *DockerCLINetmodeSuite) OnTimeout(c *testing.T) { // DockerCmdWithFail executes a docker command that is supposed to fail and returns // the output. If the command returns a Nil error, it will fail and stop the tests. func dockerCmdWithFail(c *testing.T, args ...string) string { + c.Helper() out, _, err := dockerCmdWithError(args...) assert.Assert(c, err != nil, "%v", out) return out