Skip to content

Commit

Permalink
Instrumented code runs slower
Browse files Browse the repository at this point in the history
200 ms timeout was already causing flakes even before the coverage additions anyway; now we basically can't pass the checkGlobals test on Phantom within that little time.
  • Loading branch information
ScottFreeCode committed Jun 15, 2017
1 parent 4240180 commit a066109
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/browser-fixtures/bdd.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

process.stdout = require('browser-stdout')();

window.mocha.timeout(200)
window.mocha.timeout(500)
.ui('bdd');
2 changes: 1 addition & 1 deletion test/browser-fixtures/exports.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

process.stdout = require('browser-stdout')();

window.mocha.timeout(200)
window.mocha.timeout(500)
.ui('exports');
2 changes: 1 addition & 1 deletion test/browser-fixtures/qunit.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

process.stdout = require('browser-stdout')();

window.mocha.timeout(200)
window.mocha.timeout(500)
.ui('qunit');
2 changes: 1 addition & 1 deletion test/browser-fixtures/tdd.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

process.stdout = require('browser-stdout')();

window.mocha.timeout(200)
window.mocha.timeout(500)
.ui('tdd');
2 changes: 1 addition & 1 deletion test/unit/context.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ describe('Context Siblings', function () {

describe('timeout()', function () {
it('should return the timeout', function () {
expect(this.timeout()).to.equal(200);
expect(this.timeout()).to.equal(!process.browser ? 200 : 500);
});
});

0 comments on commit a066109

Please sign in to comment.