Skip to content

Commit

Permalink
integration-cli: mark dockerCmdWithFail as an helper function
Browse files Browse the repository at this point in the history
Signed-off-by: Albin Kerouanton <[email protected]>
  • Loading branch information
akerouanton committed Oct 25, 2023
1 parent 61c78d9 commit 59c5f6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integration-cli/docker_cli_netmode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59c5f6e

Please sign in to comment.