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:
parent
eb0df4a9b9
commit
da96843920
2
test/fixtures/cluster-preload.js
vendored
2
test/fixtures/cluster-preload.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user