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 MylesBorins committed Mar 9, 2017
1 parent 04dc1cd commit 8723545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/cluster-preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var assert = require('assert');
// this module is used as a preload module. It should have a parent with the
// module search paths initialized from the current working directory
assert.ok(module.parent);
var expectedPaths = require('module')._nodeModulePaths(process.cwd());
assert.deepEqual(module.parent.paths, expectedPaths);
const expectedPaths = require('module')._nodeModulePaths(process.cwd());
assert.deepStrictEqual(module.parent.paths, expectedPaths);

var cluster = require('cluster');
cluster.isMaster || process.exit(42 + cluster.worker.id); // +42 to distinguish
Expand Down

0 comments on commit 8723545

Please sign in to comment.