From bdd0f2f7b9047b7827ae6f94343a3d3a62904ed9 Mon Sep 17 00:00:00 2001 From: sangwook Date: Sat, 27 Jun 2026 22:10:36 +0900 Subject: [PATCH 1/2] test: deflake test-net-listen-ipv6only The test verified ipv6Only by connecting to the IPv4 side of an ephemeral port and expecting ECONNREFUSED, but it never reserved that IPv4 port. Under parallel execution another test could occupy it, making the connection succeed instead of being refused. Run the test sequentially with a fixed common.PORT so it no longer competes with other tests for the same port, matching the fix already applied to the sibling cluster variants. Fixes: https://github.com/nodejs/node/issues/64172 Signed-off-by: sangwook --- test/{parallel => sequential}/test-net-listen-ipv6only.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename test/{parallel => sequential}/test-net-listen-ipv6only.js (68%) diff --git a/test/parallel/test-net-listen-ipv6only.js b/test/sequential/test-net-listen-ipv6only.js similarity index 68% rename from test/parallel/test-net-listen-ipv6only.js rename to test/sequential/test-net-listen-ipv6only.js index a329011bcc8a23..c85f813bc08b3b 100644 --- a/test/parallel/test-net-listen-ipv6only.js +++ b/test/sequential/test-net-listen-ipv6only.js @@ -11,9 +11,13 @@ const net = require('net'); const host = '::'; const server = net.createServer(); +// Use a fixed port and run this test sequentially. The assertion below relies +// on nothing else listening on the IPv4 side of the chosen port; with an +// ephemeral port under parallel execution another test can occupy that IPv4 +// port, making the connection succeed instead of being refused. server.listen({ host, - port: 0, + port: common.PORT, ipv6Only: true, }, common.mustCall(() => { const { port } = server.address(); From 91860b26014268cc5f8afb4ad0093c10d155b322 Mon Sep 17 00:00:00 2001 From: sangwook Date: Sat, 27 Jun 2026 22:56:25 +0900 Subject: [PATCH 2/2] test: re-run ci after infra timeout