Skip to content

Commit

Permalink
Increase test run time
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Dohse committed Feb 12, 2015
1 parent bbfd1d7 commit 339ac72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ describe('maxLag', function() {

describe('toobusy()', function() {
it('should return true after a little load', function(done) {
this.timeout(5000);
function load() {
if (toobusy()) return done();
var start = new Date();
while ((new Date() - start) < 250) {
while ((new Date() - start) < 500) {
for (var i = 0; i < 1e5;) i++;
}
setTimeout(load, 0);
Expand Down

0 comments on commit 339ac72

Please sign in to comment.