mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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 <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
51684725c2
commit
5736b8d3e8
1 file changed
+7
-2
+7
-2
@@ -245,10 +245,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,
|
||||
|
||||
Reference in new issue
Block a user