Skip to content

Commit

Permalink
test: use regular timeout times for ARMv8
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Fishrock123 authored and Myles Borins committed Jan 19, 2016
1 parent fd250b8 commit 15c295a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,15 @@ exports.platformTimeout = function(ms) {
if (process.arch !== 'arm')
return ms;

if (process.config.variables.arm_version === '6')
const armv = process.config.variables.arm_version;

if (armv === '6')
return 7 * ms; // ARMv6

return 2 * ms; // ARMv7 and up.
if (armv === '7')
return 2 * ms; // ARMv7

return ms; // ARMv8+
};

var knownGlobals = [setTimeout,
Expand Down

0 comments on commit 15c295a

Please sign in to comment.