From 440bea29f87064c4a498ba0d964c077dfce5b681 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 20 Nov 2023 23:07:43 +0800 Subject: [PATCH] test(napi): decrease the worker sizes on Linux x64 musl platform --- examples/napi/__tests__/worker-thread.spec.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/napi/__tests__/worker-thread.spec.ts b/examples/napi/__tests__/worker-thread.spec.ts index 6a238c63..77b9b883 100644 --- a/examples/napi/__tests__/worker-thread.spec.ts +++ b/examples/napi/__tests__/worker-thread.spec.ts @@ -15,10 +15,13 @@ const t = const concurrency = process.env.WASI_TEST ? 1 : process.platform === 'win32' || - process.platform === 'darwin' || - (process.platform === 'linux' && process.arch === 'x64') - ? 50 - : 10 + process.platform === 'darwin' || + (process.platform === 'linux' && + process.arch === 'x64' && + // @ts-expect-error + process?.report?.getReport()?.header?.glibcVersionRuntime) + ? 50 + : 10 t('should be able to require in worker thread', async (t) => { await Promise.all(