chore: skip worker_thread test on Linux aarch64 (#1354)

This commit is contained in:
LongYinan 2022-10-31 21:13:11 +08:00 committed by GitHub
parent c328d8ece5
commit b5cfa93789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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,

View file

@ -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'))