mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
fullyParallel spreads a spec's tests across workers and each re-runs the file's beforeAll; two workers seeding the fixed-id vault corpus at once raced on the document_condition_links primary key (ON CONFLICT only suppresses its named arbiter index). Guard both seeders with a Postgres advisory lock so concurrent workers seed one-at-a-time and every insert re-runs as a clean idempotent upsert.