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-cluster-dgram-reuse.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-cluster-dgram-reuse.js')
-rw-r--r-- | test/parallel/test-cluster-dgram-reuse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-dgram-reuse.js b/test/parallel/test-cluster-dgram-reuse.js index 51a4944e55..d2790b5d99 100644 --- a/test/parallel/test-cluster-dgram-reuse.js +++ b/test/parallel/test-cluster-dgram-reuse.js @@ -7,7 +7,7 @@ const assert = require('assert'); const cluster = require('cluster'); const dgram = require('dgram'); -if (cluster.isMaster) { +if (cluster.isPrimary) { cluster.fork().on('exit', common.mustCall((code) => { assert.strictEqual(code, 0); })); |