Permalink
Browse files

Fixed: clear timeout on uncaught exceptions. Closes #131

  • Loading branch information...
1 parent 2c320e1 commit 92cb0c1994a4aabf6f8b0b75b2e69539a2746ed8 @tj tj committed Dec 9, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/runner.js
View
1 lib/runner.js
@@ -391,6 +391,7 @@ Runner.prototype.run = function(fn){
// uncaught exception
function uncaught(err){
debug('uncaught exception');
+ self.currentRunnable.clearTimeout();
self.fail(self.currentRunnable, err);
self.emit('test end', self.test);
self.emit('end');

0 comments on commit 92cb0c1

Please sign in to comment.