I ran express' master tests against Mocha's current master branch (via dont-break), and the tests did not complete (the Node.js process hangs).
This is likely because of a forthcoming change in v4 which will cause Mocha to not force exit its own process once it's finished running tests (by default). See this issue for more background.
If I had to hazard a guess, likely one or more of Express' tests are leaving socket(s) open instead of closing them explicitly.
If Express wishes to upgrade, its options are:
--exit option to MochaThanks for the notification! From my understanding mocha 4 won't work under Node.js 0.10 anyway, so we won't be upgrading master to that version anyway, but Express 5 would end up upgrading, though, so would need to be addressed at that time.
Ok, tests are fixed and running under --no-exit on master now 馃憤
(to be clear, --exit is the default behavior for v3, and the default for v4 will be --no-exit)
Right. I effectively resolved using option 1 and went ahead and used the flag to make mocha v3 behave like v4 will to be ready.
Most helpful comment
Ok, tests are fixed and running under
--no-exitonmasternow 馃憤