mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
a0fcd4d219
commit
ea32d0ec4e
1 file changed
+1
-1
@@ -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__)
|
||||
|
||||
Reference in new issue
Block a user