We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb38b6f commit aae4d13Copy full SHA for aae4d13
main_test.go
@@ -21,7 +21,7 @@ func TestListContexts(t *testing.T) {
21
if err != nil {
22
t.Fatal(err)
23
}
24
- os.Setenv("KUBECONFIG", "./testdata/k8s_contexts/kubeconfig")
+ require.NoError(t, os.Setenv("KUBECONFIG", "./testdata/k8s_contexts/kubeconfig"))
25
defer func() { require.NoError(t, os.Unsetenv("KUBECONFIG")) }()
26
ts.WithExecutable("go", []string{"run", "main.go"})
27
cntrl := foxytest.NewTestRunner(t)
0 commit comments