Skip to content

Commit 668449a

Browse files
committed
test: use regular timeout times for ARMv8
ARMv8 machines are typically quite fast and likely may not need extended timeout times. PR-URL: #4248 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 671347c commit 668449a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/common.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,15 @@ exports.platformTimeout = function(ms) {
245245
if (process.arch !== 'arm')
246246
return ms;
247247

248-
if (process.config.variables.arm_version === '6')
248+
const armv = process.config.variables.arm_version;
249+
250+
if (armv === '6')
249251
return 7 * ms; // ARMv6
250252

251-
return 2 * ms; // ARMv7 and up.
253+
if (armv === '7')
254+
return 2 * ms; // ARMv7
255+
256+
return ms; // ARMv8+
252257
};
253258

254259
var knownGlobals = [setTimeout,

0 commit comments

Comments
 (0)