Skip to content

Commit d928120

Browse files
authored
Merge branch 'main' into pr-checkout-url
2 parents f5507c8 + 3385a9a commit d928120

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/resolve/resolve_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ func TestTokenForDomain(t *testing.T) {
6363
}
6464

6565
// FORGE_TOKEN is a fallback for any domain
66+
t.Setenv("GITHUB_TOKEN", "")
67+
t.Setenv("GH_TOKEN", "")
6668
t.Setenv("FORGE_TOKEN", "forge-tok")
6769
got = TokenForDomain("github.com")
6870
if got != "forge-tok" {
@@ -105,6 +107,8 @@ func TestTokenForDomainEnvSpecificOverridesFallback(t *testing.T) {
105107
}
106108

107109
func TestTokenForDomainEnvFallbackToForgeToken(t *testing.T) {
110+
t.Setenv("GITHUB_TOKEN", "")
111+
t.Setenv("GH_TOKEN", "")
108112
t.Setenv("FORGE_TOKEN", "forge-fallback")
109113

110114
got := TokenForDomainEnv("github.com")

0 commit comments

Comments
 (0)