chore: Test improvements (#10945)

* Lazy queues, correctly closing Redis and server

* feedback

* fix: Tests not correctly split across matrix
This commit is contained in:
Tom Moor
2025-12-17 23:15:55 -05:00
committed by GitHub
parent b722a361ff
commit a54e66e19a
14 changed files with 87 additions and 52 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ jobs:
- run: yarn sequelize db:migrate
- name: Run server tests
run: |
TESTFILES=$(find . -name "*.test.ts" -path "*/server/*" | sort | split -n -d -l $(($(find . -name "*.test.ts" -path "*/server/*" | wc -l)/${{ matrix.shard }})) - | sed -n "${{ matrix.shard }}p")
TESTFILES=$(find . -name "*.test.ts" -path "*/server/*" | sort | awk "NR % 4 == (${{ matrix.shard }} - 1)")
yarn test --maxWorkers=2 $TESTFILES
bundle-size: