Commit 657a725
test: stop sol-login node test hitting the real network
'routes remote URLs through fetchFor' called auth.fetch on a real
https://example.com URL. With no session, fetchFor returns the real
globalThis.fetch, so the test made a live request — undici's keep-alive
socket then lingered past test end, so jest force-exited the worker
("failed to exit gracefully"), intermittently marking the suite failed.
Stub globalThis.fetch for the test instead; it still verifies remote
URLs route via fetchFor rather than _localFetch. Full suite is now
stable across repeated runs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent d956e17 commit 657a725
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
418 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
419 | 430 | | |
420 | 431 | | |
421 | 432 | | |
| |||
0 commit comments