Commit 9a137cc
committed
fix(python): always use fake token in E2E tests to prevent hang
The E2E test harness overrides XDG_CONFIG_HOME to an isolated temp
directory. When running locally (not CI), github_token was None, so
the CLI defaulted to use_logged_in_user=True but found no credentials
in the empty temp dir. This caused a silent auth failure — the CLI
logged 'Session was not created with authentication info' but never
emitted a session.error event, making send_and_wait() hang forever.
Since E2E tests use a replaying proxy with canned responses, real
auth is never needed. Always pass the fake token.1 parent 4dc5629 commit 9a137cc
2 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
169 | | - | |
| 168 | + | |
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
0 commit comments