Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: skip worker_thread test on Linux aarch64 #1354

Merged
merged 1 commit into from Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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