Skip to content

Commit

Permalink
chore: skip worker_thread test on Linux aarch64 (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Oct 31, 2022
1 parent c328d8e commit b5cfa93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ava.config.mjs
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion examples/napi/__test__/worker-thread.spec.ts
Expand Up @@ -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'))
Expand Down

0 comments on commit b5cfa93

Please sign in to comment.