Skip to content

Commit a72c964

Browse files
committed
test: add platform timeout support for riscv64
PR-URL: #54591 Refs: #54499 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 3783499 commit a72c964

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/common/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const isOpenBSD = process.platform === 'openbsd';
143143
const isLinux = process.platform === 'linux';
144144
const isMacOS = process.platform === 'darwin';
145145
const isASan = process.config.variables.asan === 1;
146+
const isRiscv64 = process.arch === 'riscv64';
146147
const isDebug = process.features.debug;
147148
const isPi = (() => {
148149
try {
@@ -290,6 +291,10 @@ function platformTimeout(ms) {
290291
if (isPi)
291292
return multipliers.two * ms; // Raspberry Pi devices
292293

294+
if (isRiscv64) {
295+
return multipliers.four * ms;
296+
}
297+
293298
return ms;
294299
}
295300

0 commit comments

Comments
 (0)