From 83ebaf08d9cd36bfbae0b3fbf7406736cfd72aef Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Wed, 14 Mar 2018 20:56:28 +0800 Subject: [PATCH] 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 Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum --- test/parallel/test-module-loading-globalpaths.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/parallel/test-module-loading-globalpaths.js b/test/parallel/test-module-loading-globalpaths.js index aff96543735428..798b7765bb6d5b 100644 --- a/test/parallel/test-module-loading-globalpaths.js +++ b/test/parallel/test-module-loading-globalpaths.js @@ -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;