Hacker News new | ask | show | jobs
by mrloba 893 days ago
It's not perfect, but I have had success running postgres in Docker and running integration tests against that. Usually you can trigger the problem by running a handful of queries in parallel.
2 comments

Yes exactly. That's the approach taken here. The main downside is that it can require sleeps to properly reproduce race conditions.
this is the current setup we use in my team but I am trying to move away for this to something more systematic.