Skip to content

Commit dc47d79

Browse files
committed
Isolate env in pkg/cmdutil tests
1 parent c81166d commit dc47d79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cmdutil/auth_check_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ func Test_CheckAuth(t *testing.T) {
5151
tokenValue = "TOKEN"
5252
}
5353
t.Cleanup(env.WithEnv(map[string]string{
54-
"GITHUB_TOKEN": tokenValue,
54+
"GH_TOKEN": tokenValue,
55+
"GITHUB_TOKEN": "",
56+
"GH_ENTERPRISE_TOKEN": "",
57+
"GITHUB_ENTERPRISE_TOKEN": "",
5558
}))
5659

5760
cfg := config.NewBlankConfig()

0 commit comments

Comments
 (0)