integration-cli: mark dockerCmdWithFail as an helper function
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
parent
61c78d9438
commit
59c5f6e35b
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ func (s *DockerCLINetmodeSuite) OnTimeout(c *testing.T) {
|
||||||
// DockerCmdWithFail executes a docker command that is supposed to fail and returns
|
// 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.
|
// the output. If the command returns a Nil error, it will fail and stop the tests.
|
||||||
func dockerCmdWithFail(c *testing.T, args ...string) string {
|
func dockerCmdWithFail(c *testing.T, args ...string) string {
|
||||||
|
c.Helper()
|
||||||
out, _, err := dockerCmdWithError(args...)
|
out, _, err := dockerCmdWithError(args...)
|
||||||
assert.Assert(c, err != nil, "%v", out)
|
assert.Assert(c, err != nil, "%v", out)
|
||||||
return out
|
return out
|
||||||
|
|
Loading…
Reference in a new issue