I'm testing a Nodejs server with Mocha and Supertest. The test suite has grown to more than 1500 tests. Suddenly, although all of the code under test still works, my test suite fails with this error:
{ [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
If I comment out some tests that run earlier, the tests that cause the error change. What is causing this insanity?
I found the answer in this Google Groups post by Mike Gradek:
And for me as well.