Skip to content

Commit

Permalink
test: reduce offset in test-inspector-port-cluster
Browse files Browse the repository at this point in the history
10 ports for each test-case is too much.
Not enough ports for new test cases, considering ~100 ports per file.

PR-URL: nodejs#14140
Fixes: nodejs#8495
Fixes: nodejs#12941
Refs: nodejs#9659
Refs: nodejs#13761
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
mutantcornholio authored and refack committed Jul 14, 2017
1 parent ca5b0c4 commit 592b0ed
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/inspector/test-inspector-port-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function testRunnerMain() {
workers: [{expectedPort: 9230}]
});

let port = debuggerPort + offset++ * 10;
let port = debuggerPort + offset++ * 5;

spawnMaster({
execArgv: [`--inspect=${port}`],
Expand All @@ -34,43 +34,43 @@ function testRunnerMain() {
]
});

port = debuggerPort + offset++ * 10;
port = debuggerPort + offset++ * 5;

spawnMaster({
execArgv: ['--inspect', `--inspect-port=${port}`],
workers: [{expectedPort: port + 1}]
});

port = debuggerPort + offset++ * 10;
port = debuggerPort + offset++ * 5;

spawnMaster({
execArgv: ['--inspect', `--debug-port=${port}`],
workers: [{expectedPort: port + 1}]
});

port = debuggerPort + offset++ * 10;
port = debuggerPort + offset++ * 5;

spawnMaster({
execArgv: [`--inspect=0.0.0.0:${port}`],
workers: [{expectedPort: port + 1, expectedHost: '0.0.0.0'}]
});

port = debuggerPort + offset++ * 10;
port = debuggerPort + offset++ * 5;

spawnMaster({
execArgv: [`--inspect=127.0.0.1:${port}`],
workers: [{expectedPort: port + 1, expectedHost: '127.0.0.1'}]
});

if (common.hasIPv6) {
port = debuggerPort + offset++ * 10;
port = debuggerPort + offset++ * 5;

spawnMaster({
execArgv: [`--inspect=[::]:${port}`],
workers: [{expectedPort: port + 1, expectedHost: '::'}]
});

port = debuggerPort + offset++ * 10;
port = debuggerPort + offset++ * 5;

spawnMaster({
execArgv: [`--inspect=[::1]:${port}`],
Expand Down

0 comments on commit 592b0ed

Please sign in to comment.