Skip to content

Commit aae4d13

Browse files
committed
fix linter issue
1 parent bb38b6f commit aae4d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestListContexts(t *testing.T) {
2121
if err != nil {
2222
t.Fatal(err)
2323
}
24-
os.Setenv("KUBECONFIG", "./testdata/k8s_contexts/kubeconfig")
24+
require.NoError(t, os.Setenv("KUBECONFIG", "./testdata/k8s_contexts/kubeconfig"))
2525
defer func() { require.NoError(t, os.Unsetenv("KUBECONFIG")) }()
2626
ts.WithExecutable("go", []string{"run", "main.go"})
2727
cntrl := foxytest.NewTestRunner(t)

0 commit comments

Comments
 (0)