Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit b83a9d4

Browse files
Trottaddaleax
authored andcommitted
test: use process.features.debug in common module
Replace process.config.target_defaults.default_configuration check with process.features.debug. PR-URL: nodejs/node#16537 Ref: nodejs/node#4431 (comment) Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent eef389c commit b83a9d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ exports.spawnSyncPwd = function(options) {
338338
};
339339

340340
exports.platformTimeout = function(ms) {
341-
if (process.config.target_defaults.default_configuration === 'Debug')
341+
if (process.features.debug)
342342
ms = 2 * ms;
343343

344344
if (global.__coverage__)

0 commit comments

Comments
 (0)