GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: deflake test-net-listen-ipv6only · nodejs/node@7935ae0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/sequential
    • test-net-listen-ipv6only.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-net-listen-ipv6only.js‎ ‎…t/sequential/test-net-listen-ipv6only.js‎test/parallel/test-net-listen-ipv6only.js renamed to test/sequential/test-net-listen-ipv6only.js test/parallel/test-net-listen-ipv6only.js renamed to test/sequential/test-net-listen-ipv6only.js

Copy file name to clipboardExpand all lines: test/sequential/test-net-listen-ipv6only.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ const net = require('net');
1111

1212
const host = '::';
1313
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.
1418
server.listen({
1519
host,
16-
port: 0,
20+
port: common.PORT,
1721
ipv6Only: true,
1822
}, common.mustCall(() => {
1923
const { port } = server.address();

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.