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 2018-03-14 20:56:28 +08:00 committed by Michaël Zasso
parent ebdcf91dcc
commit 83ebaf08d9
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600

View File

@ -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;