chore: linting

This commit is contained in:
Fernandez Ludovic 2025-02-13 03:03:12 +01:00
parent 961192eb9b
commit 565e4316ca
2 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,6 @@
package file
import (
"context"
"testing"
"github.com/ldez/traefik-certs-dumper/v2/dumper"
@ -54,7 +53,7 @@ func TestDump(t *testing.T) {
Version: test.version,
}
err := Dump(context.Background(), test.acmeFile, cfg)
err := Dump(t.Context(), test.acmeFile, cfg)
require.NoError(t, err)
})
}

View File

@ -1,7 +1,6 @@
package hook
import (
"context"
"testing"
)
@ -22,7 +21,7 @@ func Test_execute(t *testing.T) {
for _, test := range testCases {
t.Run(test.desc, func(t *testing.T) {
err := execute(context.Background(), test.command)
err := execute(t.Context(), test.command)
if err != nil {
t.Fatal(err)
}