Flaky Clock Test

medium~30 min

A test passes most of the time but occasionally fails, and the failures seem to depend on when the test happens to run. Explain the likely root cause, and the fix.

Solution

This one has no written solution — the answer is your own story or your own submission.