Commit 0d90f0f
committed
test(daemon-server): bind blocker to 0.0.0.0 so EADDRINUSE fires on macOS/Windows
Previous version bound the blocker to 127.0.0.1, but express.listen(port)
binds to 0.0.0.0 (no host arg). On BSD-derived stacks (macOS, Windows) a
127.0.0.1 bind and a 0.0.0.0 bind on the same port can coexist, so the
daemon's wildcard listen succeeded and the test asserted rejection but got
a resolved promise. Linux is stricter and treats this as a conflict, which
is why ubuntu passed but the other runners failed.1 parent 6a2f9da commit 0d90f0f
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | | - | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
0 commit comments