onNextServerEmit()

One of the biggest challenges of testing networking code is writing tests that don’t have arbitrary timeouts. Network events are slow and we can’t predict how long they’ll take to arrive. Using timeouts results in tests that are either slow or brittle—or both. Our onNextServerEmit() method helps us solve this problem.

  1. E561Test the Interval

    Mon, 23 Oct ’17
  2. E562Events and the Async Keyword

    Wed, 25 Oct ’17
  3. E563A Specific Client

    Mon, 30 Oct ’17
  4. E564Selective Timeouts

    Wed, 1 Nov ’17
  5. E565Without the Timeouts

    Mon, 6 Nov ’17
  6. E566Event Emitter

    Wed, 8 Nov ’17
  7. E567A Hive of Scum and Villainy

    Mon, 13 Nov ’17
  8. E568On Any Activity

    Wed, 15 Nov ’17
  9. E569Too Many Complications

    Mon, 20 Nov ’17
  10. E570onNextServerEmit()

    Wed, 22 Nov ’17
  11. E571Evidence of Absence

    Mon, 27 Nov ’17
  12. E572Time Out

    Wed, 29 Nov ’17