Skip to content

Commit 89788fb

Browse files
Merge pull request #7056 from Shopify/fix-flaky-tests-mac
Fix intermittent crashes in Mac tests
2 parents a4d95bf + 2ee02ec commit 89788fb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/tests-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,10 @@ jobs:
197197
with:
198198
node-version: ${{ matrix.node }}
199199
- name: Unit tests
200-
run: pnpm vitest run ${{ matrix.shard && format('--shard {0}', matrix.shard) || '' }}
200+
run: pnpm vitest run ${{ env.POOL_OPTIONS }} ${{ env.SHARD_OPTIONS }}
201201
env:
202+
POOL_OPTIONS: ${{ matrix.os == 'macos-latest' && '--pool forks' || '' }}
203+
SHARD_OPTIONS: ${{ matrix.shard && format('--shard {0}', matrix.shard) || '' }}
202204
VITEST_MIN_THREADS: "1"
203205
VITEST_MAX_THREADS: "4"
204206

0 commit comments

Comments
 (0)