Skip to content

Commit acc7b6c

Browse files
Adjusted timeouts for different environments
1 parent 0193232 commit acc7b6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/specs/callbacks.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
describe('Callback & Promise syntax', function() {
44
// NOTE: This delay is so high because TravisCI and SauceLabs,
55
// both of which are VERY SLOW
6-
var delay = 2000;
6+
var delay = global.__karma__ ? 2000 : 200;
77

88
beforeEach(function() {
99
// These tests all have a delay, to ensure that all callbacks and promises are called.
1010
// So we need to increase the test timeouts
1111
this.currentTest.timeout(delay * 2);
12-
this.currentTest.slow(delay * 2);
12+
this.currentTest.slow(delay * 2 + 50);
1313
});
1414

1515
['parse', 'resolve', 'dereference', 'bundle'].forEach(function(method) {

0 commit comments

Comments
 (0)