chore: linting
This commit is contained in:
parent
961192eb9b
commit
565e4316ca
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user