| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 646221a commit b6852e2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,9 +11,13 @@ const net = require('net'); | |||
| 11 | 11 | ||
| 12 | 12 | const host = '::'; | |
| 13 | 13 | const server = net.createServer(); | |
| 14 | + // Use a fixed port and run this test sequentially. The assertion below relies | ||
| 15 | + // on nothing else listening on the IPv4 side of the chosen port; with an | ||
| 16 | + // ephemeral port under parallel execution another test can occupy that IPv4 | ||
| 17 | + // port, making the connection succeed instead of being refused. | ||
| 14 | 18 | server.listen({ | |
| 15 | 19 | host, | |
| 16 | - port: 0, | ||
| 20 | + port: common.PORT, | ||
| 17 | 21 | ipv6Only: true, | |
| 18 | 22 | }, common.mustCall(() => { | |
| 19 | 23 | const { port } = server.address(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments