Skip to content

Commit

Permalink
test: handle undefined default_configuration
Browse files Browse the repository at this point in the history
PR-URL: #30465
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
codebytere authored and targos committed Dec 1, 2019
1 parent 8bb232f commit 376ec01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ const enoughTestCpu = Array.isArray(cpus) &&

const rootDir = isWindows ? 'c:\\' : '/';

const buildType = process.config.target_defaults.default_configuration;

const buildType = process.config.target_defaults ?
process.config.target_defaults.default_configuration :
'Release';

// If env var is set then enable async_hook hooks for all tests.
if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
Expand Down

0 comments on commit 376ec01

Please sign in to comment.