Deterministic Simulation Testing in Go with synctest

Concurrency bugs are miserable to test for. A test passes on your machine, fails once in CI, and you can&rsquo;t reproduce it because it lived in some interleaving the scheduler picked that one time. Deterministic Simulation Testing (DST) is one way out of that. The idea is to take the things in your program that vary between runs and funnel them through a single bus, one operation at a time, all…