From ea32d0ec4e07878aeda87a9fe33e14f4a84fa96a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 26 Oct 2017 16:50:43 -0700 Subject: [PATCH] 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 Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- test/common/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/index.js b/test/common/index.js index a659a91697e..bd4a0c339a8 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -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__)