Closed nsabovic closed 13 years ago
I still get the wrong title (not that it's worse than before haha)
you know, same here, I actually get completely wrong error messages if I have a series of tests that are using the assert.response ( my one spec file has 10 of these ) the last test is always the title and message I get even if the simpliest and first test is the one I make fail.
i'll have to git bisect some time and see where things went wrong, or if it ever even worked properly haha
This should work in 0.9.0.
Currently, failures in assert.response() are caught in on('uncaughtException'). This causes check() to not be called, and the server keeps running, node never exits, and our test bots get stuck.
This branch catches exceptions in the handler, and therefore attributes errors to the correct suite/test. It also runs cleanup in the finally block, so that the server is always shut down.