mirror of
https://github.com/moby/moby.git
synced 2026-08-04 23:21:00 +00:00
fix thelper linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user