integration-cli: mark dockerCmdWithFail as an helper function

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton 2023-10-25 10:25:00 +02:00
parent 61c78d9438
commit 59c5f6e35b
No known key found for this signature in database
GPG key ID: 630B8E1DCBDB1864

View file

@ -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