Commit 386dd4e
committed
test(gateway): replace redundant Windows passthrough test with platform-conditional guard test
The previous 'skips ::1 on Windows for non-loopback host passthrough' test
used 0.0.0.0 as bindHost, which exits via the pre-existing non-loopback
early-return before the win32 guard is ever reached. It would pass even
if the Windows guard were removed entirely.
Replace with a test that verifies the guard is win32-only: on darwin,
resolveGatewayListenHosts('127.0.0.1') still returns ['127.0.0.1','::1']
and calls canBindToHost, confirming dual-stack is preserved on non-Windows.1 parent 7ee9531 commit 386dd4e
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
0 commit comments