diff options
author | Michael Dawson <mdawson@devrus.com> | 2020-12-10 16:53:44 -0500 |
---|---|---|
committer | Michael Dawson <mdawson@devrus.com> | 2021-01-05 15:41:45 -0500 |
commit | 15164cebcebfcad9822d3f065234a8c1511776a4 (patch) | |
tree | f9ce2f183ba5af0ff50e104d72af58dbbc40c943 /test/parallel/test-inspector-port-zero-cluster.js | |
parent | 3c49ee298fd52295f4cff301a739d43b3ecf0d24 (diff) | |
download | node-new-15164cebcebfcad9822d3f065234a8c1511776a4.tar.gz |
lib,src: update cluster to use Parent
Doc deprecate isMaster and setupMaster in favor
of isPrimary and setupPrimary.
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: https://github.com/nodejs/node/pull/36478
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Diffstat (limited to 'test/parallel/test-inspector-port-zero-cluster.js')
-rw-r--r-- | test/parallel/test-inspector-port-zero-cluster.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-inspector-port-zero-cluster.js b/test/parallel/test-inspector-port-zero-cluster.js index 0330f1d50e..8e2db0b69d 100644 --- a/test/parallel/test-inspector-port-zero-cluster.js +++ b/test/parallel/test-inspector-port-zero-cluster.js @@ -28,11 +28,11 @@ function serialFork() { }); } -if (cluster.isMaster) { +if (cluster.isPrimary) { Promise.all([serialFork(), serialFork(), serialFork()]) .then(common.mustCall((ports) => { ports.splice(0, 0, process.debugPort); - // 4 = [master, worker1, worker2, worker3].length() + // 4 = [primary, worker1, worker2, worker3].length() assert.strictEqual(ports.length, 4); assert(ports.every((port) => port > 0)); assert(ports.every((port) => port < 65536)); |