test: remove NODE_DEBUG in global module loading test

Otherwise the debug log output might be mixed up with
the expected errors and the assertion matching the error
message would fail.

Backport-PR-URL: https://github.com/nodejs/node/pull/19374
PR-URL: https://github.com/nodejs/node/pull/19177
Refs: https://github.com/nodejs/node/pull/19112
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
Joyee Cheung authored and Michaël Zasso committed 2018-04-04 16:21:15 +02:00
1 parent ebdcf91dcc
commit 83ebaf08d9
1 file changed
-2
@@ -41,8 +41,6 @@ if (process.argv[2] === 'child') {
const testFixturesDir = fixtures.path(path.basename(__filename, '.js'));
const env = Object.assign({}, process.env);
// Turn on module debug to aid diagnosing failures.
env.NODE_DEBUG = 'module';
// Unset NODE_PATH.
delete env.NODE_PATH;