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/known_issues | |
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/known_issues')
-rw-r--r-- | test/known_issues/test-dgram-bind-shared-ports-after-port-0.js | 4 | ||||
-rw-r--r-- | test/known_issues/test-inspector-cluster-port-clash.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/known_issues/test-dgram-bind-shared-ports-after-port-0.js b/test/known_issues/test-dgram-bind-shared-ports-after-port-0.js index 5ceac4ebee..089a583652 100644 --- a/test/known_issues/test-dgram-bind-shared-ports-after-port-0.js +++ b/test/known_issues/test-dgram-bind-shared-ports-after-port-0.js @@ -13,7 +13,7 @@ const cluster = require('cluster'); const dgram = require('dgram'); const BYE = 'bye'; -if (cluster.isMaster) { +if (cluster.isPrimary) { const worker1 = cluster.fork(); // Verify that Windows doesn't support this scenario @@ -40,7 +40,7 @@ if (cluster.isMaster) { worker2.send(BYE); }); }); - // end master code + // end primary code } else { // worker code process.on('message', (msg) => msg === BYE && process.exit(0)); diff --git a/test/known_issues/test-inspector-cluster-port-clash.js b/test/known_issues/test-inspector-cluster-port-clash.js index f5baedf8aa..e5daee61b7 100644 --- a/test/known_issues/test-inspector-cluster-port-clash.js +++ b/test/known_issues/test-inspector-cluster-port-clash.js @@ -47,7 +47,7 @@ function serialFork() { }); } -if (cluster.isMaster) { +if (cluster.isPrimary) { cluster.on('online', common.mustCall((worker) => worker.send('dbgport'), 2)); // Block one of the ports with a listening socket. |