0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

test: refactor cluster-preload.js

PR-URL: https://github.com/nodejs/node/pull/10701
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
This commit is contained in:
abouthiroppy 2017-01-09 15:58:37 +09:00 committed by Italo A. Casas
parent eb0df4a9b9
commit da96843920

View File

@ -5,7 +5,7 @@ const assert = require('assert');
// module search paths initialized from the current working directory
assert.ok(module.parent);
const expectedPaths = require('module')._nodeModulePaths(process.cwd());
assert.deepEqual(module.parent.paths, expectedPaths);
assert.deepStrictEqual(module.parent.paths, expectedPaths);
const cluster = require('cluster');
cluster.isMaster || process.exit(42 + cluster.worker.id); // +42 to distinguish