When nodeunit says โUndone testsโ, this means that the node process exited without completing all the tests. To be clear, this does not mean that "PONG is not sent fast enough", which means that there were no more handlers in the event loop. If there are no more handlers, then the PONG event does not exist, so the test is not possible.
For example, if you ran something like this:
var s = require('http').createServer(); s.listen(80)
When listen starts, the server starts listening for incoming data and is added to the event loop to check incoming connections. If you just created createServer, the events will not fire and your program will simply exit.
Do you have anything related to the error event somewhere that could lead to errors?
source share