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: use dynamic port in 3 test-cluster-worker tests · nodejs/node@384fa17

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-cluster-worker-disconnect.js
    • test-cluster-worker-exit.js
    • test-cluster-worker-kill.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-cluster-worker-disconnect.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-worker-disconnect.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (cluster.isWorker) {
77
const http = require('http');
88
http.Server(() => {
99

10-
}).listen(common.PORT, '127.0.0.1');
10+
}).listen(0, '127.0.0.1');
1111
const worker = cluster.worker;
1212
assert.strictEqual(worker.exitedAfterDisconnect, worker.suicide);
1313

Collapse file

‎test/parallel/test-cluster-worker-exit.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-worker-exit.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (cluster.isWorker) {
1919
server.once('listening', common.mustCall(() => {
2020
process.exit(EXIT_CODE);
2121
}));
22-
server.listen(common.PORT, '127.0.0.1');
22+
server.listen(0, '127.0.0.1');
2323

2424
} else if (cluster.isMaster) {
2525

Collapse file

‎test/parallel/test-cluster-worker-kill.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-worker-kill.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (cluster.isWorker) {
1515
const server = http.Server(() => { });
1616

1717
server.once('listening', common.mustCall(() => { }));
18-
server.listen(common.PORT, '127.0.0.1');
18+
server.listen(0, '127.0.0.1');
1919

2020
} else if (cluster.isMaster) {
2121

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.