From 15c295a21b53208c32becb49428765cd799af0ff Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Thu, 10 Dec 2015 15:03:59 -0500 Subject: [PATCH] test: use regular timeout times for ARMv8 ARMv8 machines are typically quite fast and likely may not need extended timeout times. PR-URL: https://github.com/nodejs/node/pull/4248 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Rod Vagg Reviewed-By: Colin Ihrig --- test/common.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/common.js b/test/common.js index 3f940789d796b6..adf4247706f4cb 100644 --- a/test/common.js +++ b/test/common.js @@ -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,