fix thelper linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-05-22 11:41:49 +02:00
parent 9663b36b6d
commit 9b5d8cd186
68 changed files with 1039 additions and 1014 deletions

View File

@@ -21,20 +21,20 @@ type DockerCLINetmodeSuite struct {
ds *DockerSuite
}
func (s *DockerCLINetmodeSuite) TearDownTest(ctx context.Context, c *testing.T) {
s.ds.TearDownTest(ctx, c)
func (s *DockerCLINetmodeSuite) TearDownTest(ctx context.Context, t *testing.T) {
s.ds.TearDownTest(ctx, t)
}
func (s *DockerCLINetmodeSuite) OnTimeout(c *testing.T) {
s.ds.OnTimeout(c)
func (s *DockerCLINetmodeSuite) OnTimeout(t *testing.T) {
s.ds.OnTimeout(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()
func dockerCmdWithFail(t *testing.T, args ...string) string {
t.Helper()
out, _, err := dockerCmdWithError(args...)
assert.Assert(c, err != nil, "%v", out)
assert.Assert(t, err != nil, "%v", out)
return out
}