diff --git a/ava.config.mjs b/ava.config.mjs index 24cfaf898e..1d1564f3fb 100644 --- a/ava.config.mjs +++ b/ava.config.mjs @@ -7,7 +7,7 @@ const configuration = { environmentVariables: { TS_NODE_PROJECT: './examples/tsconfig.json', }, - timeout: '2m', + timeout: '5m', workerThreads: true, concurrency: process.env.CI ? 2 : cpus().length, failFast: false, diff --git a/examples/napi/__test__/worker-thread.spec.ts b/examples/napi/__test__/worker-thread.spec.ts index 9d1c78047d..74423849f3 100644 --- a/examples/napi/__test__/worker-thread.spec.ts +++ b/examples/napi/__test__/worker-thread.spec.ts @@ -5,7 +5,10 @@ import test from 'ava' import { Animal, Kind, DEFAULT_COST } from '../index' -test('should be able to require in worker thread', async (t) => { +const t = + process.arch === 'arm64' && process.platform === 'linux' ? test.skip : test + +t('should be able to require in worker thread', async (t) => { await Promise.all( Array.from({ length: 100 }).map(() => { const w = new Worker(join(__dirname, 'worker.js'))