Skip to content

Commit

Permalink
test: refactor cluster-preload.js
Browse files Browse the repository at this point in the history
PR-URL: #10701
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
  • Loading branch information
hiroppy authored and italoacasas committed Jan 10, 2017
1 parent eb0df4a commit da96843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fixtures/cluster-preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da96843

Please sign in to comment.