test: use process.features.debug in common module

Replace process.config.target_defaults.default_configuration check with
process.features.debug.

PR-URL: https://github.com/nodejs/node/pull/16537
Ref: https://github.com/nodejs/node/pull/4431#issuecomment-173663527
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Rich Trott authored and Gibson Fahnestock committed 2017-10-31 00:15:01 +00:00
1 parent a0fcd4d219
commit ea32d0ec4e
1 file changed
+1 -1
+1 -1
View File
@@ -340,7 +340,7 @@ exports.spawnSyncPwd = function(options) {
};
exports.platformTimeout = function(ms) {
if (process.config.target_defaults.default_configuration === 'Debug')
if (process.features.debug)
ms = 2 * ms;
if (global.__coverage__)