Skip to content

Clear env vars in tests#105

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
untitaker:fix-test-env-leakage
May 26, 2026
Merged

Clear env vars in tests#105
andrew merged 1 commit into
git-pkgs:mainfrom
untitaker:fix-test-env-leakage

Conversation

@untitaker
Copy link
Copy Markdown
Contributor

Tests fail when GITHUB_TOKEN is set in the shell.

Tests fail when GITHUB_TOKEN is set in the shell.
@andrew andrew merged commit 3385a9a into git-pkgs:main May 26, 2026
andrew added a commit that referenced this pull request May 26, 2026
Follow-up to #105. TestTokenForDomain still failed if FORGE_TOKEN was
set in the shell because the first assertion expects an empty result
for example.com. Add a clearTokenEnv helper that blanks every token
var TokenForDomainEnv reads, and call it at the top of each token
test so each test only sets the vars it actually exercises.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants