visionmedia/mocha — Issue #195: regression: uncaught exceptions reporting several times
Author: visionmedia
Created: 2012-01-06 17:34:04+00:00
State: open
Labels: bug, High priority

```js
require('should')

describe('tests: ', function(){
it('test 1', function (done){
setTimeout(function() {
'one'.should.be.equal(1);
done();
}, 2000);
});

it('test 2', function(){
'two'.should.be.equal('two');
});

it('test 3', function(done){
process.nextTick(function(){
'foo'.should.equal('foo');
done();
});
})
})
```

outputs:

```

λ mocha (master): ./bin/mocha test

....

✖ 2 of 3 tests failed:

0) tests: test 1:
AssertionError: expected 'one' to equal 1
at Object.equal (/Users/tj/Projects/mocha/node_modules/should/lib/should.js:306:10)
at Object._onTimeout (/Users/tj/Projects/mocha/test.js:7:23)
at Timer.ontimeout (timers.js:84:39)

1) tests: test 1:
AssertionError: expected 'one' to equal 1
at Object.equal (/Users/tj/Projects/mocha/node_modules/should/lib/should.js:306:10)
at Object._onTimeout (/Users/tj/Projects/mocha/test.js:7:23)
at Timer.ontimeout (timers.js:84:39)

```