test(napi): decrease the worker sizes on Linux x64 musl platform

This commit is contained in:
LongYinan 2023-11-20 23:07:43 +08:00 committed by GitHub
parent 6a4f4f173d
commit 440bea29f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,10 +15,13 @@ const t =
const concurrency = process.env.WASI_TEST const concurrency = process.env.WASI_TEST
? 1 ? 1
: process.platform === 'win32' || : process.platform === 'win32' ||
process.platform === 'darwin' || process.platform === 'darwin' ||
(process.platform === 'linux' && process.arch === 'x64') (process.platform === 'linux' &&
? 50 process.arch === 'x64' &&
: 10 // @ts-expect-error
process?.report?.getReport()?.header?.glibcVersionRuntime)
? 50
: 10
t('should be able to require in worker thread', async (t) => { t('should be able to require in worker thread', async (t) => {
await Promise.all( await Promise.all(