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:
parent
2f47b6869a
commit
98eab4a461
@ -340,7 +340,7 @@ exports.spawnSyncPwd = function(options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.platformTimeout = function(ms) {
|
exports.platformTimeout = function(ms) {
|
||||||
if (process.config.target_defaults.default_configuration === 'Debug')
|
if (process.features.debug)
|
||||||
ms = 2 * ms;
|
ms = 2 * ms;
|
||||||
|
|
||||||
if (global.__coverage__)
|
if (global.__coverage__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user