Repository navigation
Commit cf9433f
Wiktor Starczewski
fix(test): TestRunServer_FirstRunWithoutNameErrors hung on Ubuntu CI
The test passed 'nil' as the signal channel, assuming config.Resolve
would error out before the signal wait. On the GitHub Actions runner
that assumption didn't hold — something in the environment let
config.Resolve succeed (likely a pre-populated XDG_CONFIG_HOME), the
HTTP server booted for real, and <-nil blocks forever.
Defensive fix:
* clear XDG_CONFIG_HOME so Dir() resolves strictly under the
scratch HOME
* pre-signal the channel so the server shuts down even if Resolve
regresses in the future
* bind to an ephemeral port so parallel tests don't collide on :34561 parent 6d0a213 commit cf9433f
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
571 | 588 | | |
572 | 589 | | |
573 | 590 | | |
| |||
0 commit comments