Eliminate the Test Race

Our real-time server test has a race condition: when we create (or close) a websocket, we need to wait for it to be created (or closed). But for how long? Hardcoded timers are a bad idea—they’re slow and prone to intermittent failure. So instead, we write a “waitUntil()” function that’s fast, reliable, and provides a nice timeout message.

  1. E507Some Server Design Work

    Mon, 17 Apr ’17
  2. E508HttpServer

    Wed, 19 Apr ’17
  3. E509The Safety Net

    Mon, 24 Apr ’17
  4. E510Tests and Design

    Wed, 26 Apr ’17
  5. E511Move Tests

    Mon, 1 May ’17
  6. E512End-to-End Server Tests

    Wed, 3 May ’17
  7. E513Simplifying Integration Tests

    Mon, 8 May ’17
  8. E514The Wrong Test

    Wed, 10 May ’17
  9. E515Stop It

    Mon, 15 May ’17
  10. E516Shave That Yak

    Wed, 17 May ’17
  11. E517Eliminate the Test Race

    Mon, 22 May ’17
  12. E518Shot Down

    Wed, 24 May ’17