We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7320f1 commit 93ceee9Copy full SHA for 93ceee9
.golangci.yaml
@@ -25,6 +25,7 @@ linters:
25
- nolintlint
26
- staticcheck
27
- stylecheck
28
+ - tenv
29
- typecheck
30
- unconvert
31
- unparam
run/run_test.go
@@ -3,7 +3,6 @@ package run
3
import (
4
"context"
5
"errors"
6
- "os"
7
"sync"
8
"testing"
9
@@ -272,8 +271,7 @@ func TestRunWithInputs(t *testing.T) {
272
271
if err != nil {
273
t.Fatal(err)
274
}
275
- os.Setenv("FOO", "BAR")
276
- defer os.Unsetenv("FOO")
+ t.Setenv("FOO", "BAR")
277
scriptRunner := &mockScriptRunner{}
278
runner.scriptRunner = scriptRunner
279
err = runner.Run(context.Background(), "task", nil)
0 commit comments