On Wednesday, March 7, 2012 1:12:23 AM UTC+1, James Coglan wrote:
I'm not sure what you mean. Shouldn't the test framework exit with the right status for you, or give you a hook to get notified when the tests have finished so you can call exit() yourself?
Sorry for being unclear, thats what it does - but not when the redis connections don't close.
It does, but there's no interface on NodeAdapter that calls through to that method. I could add one but I know there will be a ton of other stuff to clean up if you want NodeAdapter.stop() to clean up everything that could keep a Node process running. I don't have time to look at it immediately but feel free to explore and submit a patch.
No problem. I don't either at the moment, though I'd love to see/add that some day :)
As a temporary solution for now, the following seems to be working to have node exit after running my tests;
server.once('close', function () {
bayeux._server._engine.disconnect();
});