3864472057
It was possible for the test to end (via done()) before the final /events req was flushed, resulting in a fail as there were requests outstanding. We now wait until the final flush is done before done()ing.