From 0beeeb1755c07e6417468017642260bf36f67a5e Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 31 Oct 2022 15:37:36 +0800 Subject: [PATCH] chore: skip worker_thread test on Linux aarch64 --- ava.config.mjs | 2 +- examples/napi/__test__/worker-thread.spec.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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'))