Repository navigation
Commit f0924f6
committed
test(github): keep an ambient GH_TOKEN out of the credentials tests
GitHubCredentials prefers GH_TOKEN or GITHUB_TOKEN from
HostProcess.Environment over asking gh. The GitHubCredentials tests
drive the gh path through a fake process runner, but they read the real
environment. With either token set, as in many agent and CI shells,
they never reached gh and one failed.
The test layer now provides an empty HostProcess.Environment. The
assertions are unchanged.
Fails before (with GH_TOKEN set): 1 failure in GitHubRest.test.ts.
Passes after, with the same environment.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A1D6J2UMPo7YBWQFvbg1br1 parent 3dcf6aa commit f0924f6
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| 250 | + | |
| 251 | + | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
| |||
0 commit comments