summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-bind-twice.js
diff options
context:
space:
mode:
authorMichael Dawson <mdawson@devrus.com>2020-12-10 16:53:44 -0500
committerMichael Dawson <mdawson@devrus.com>2021-01-05 15:41:45 -0500
commit15164cebcebfcad9822d3f065234a8c1511776a4 (patch)
treef9ce2f183ba5af0ff50e104d72af58dbbc40c943 /test/parallel/test-cluster-bind-twice.js
parent3c49ee298fd52295f4cff301a739d43b3ecf0d24 (diff)
downloadnode-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-cluster-bind-twice.js')
-rw-r--r--test/parallel/test-cluster-bind-twice.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-cluster-bind-twice.js b/test/parallel/test-cluster-bind-twice.js
index 7bd818a5e1..aa9442e167 100644
--- a/test/parallel/test-cluster-bind-twice.js
+++ b/test/parallel/test-cluster-bind-twice.js
@@ -29,7 +29,7 @@
//
// <supervisor>
// / \
-// <master 1> <master 2>
+// <primary 1> <primary 2>
// / \
// <worker 1> <worker 2>
//
@@ -78,7 +78,7 @@ if (!id) {
}));
} else if (id === 'one') {
- if (cluster.isMaster) return startWorker();
+ if (cluster.isPrimary) return startWorker();
const server = http.createServer(common.mustNotCall());
server.listen(0, common.mustCall(() => {
@@ -89,7 +89,7 @@ if (!id) {
if (m === 'QUIT') process.exit();
}));
} else if (id === 'two') {
- if (cluster.isMaster) return startWorker();
+ if (cluster.isPrimary) return startWorker();
const server = http.createServer(common.mustNotCall());
process.on('message', common.mustCall((m) => {