Skip to content

Commit 1706878

Browse files
committed
tests: Use shorter timeouts for async code
0.1s instead of 10s. Make the run go a bit quicker!
1 parent ce66189 commit 1706878

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/fixtures/async-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('a', 2, function(assert){
99
assert.ok(true, 'test a1');
1010
assert.ok(true, 'test a2');
1111
done();
12-
}, 10000);
12+
}, 100);
1313
});
1414

1515
test('2', 1, function (){

test/fixtures/coverage-code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports.myMethod = function() {
55
exports.myAsyncMethod = function(callback) {
66
setTimeout(function() {
77
callback(123);
8-
}, 10000);
8+
}, 100);
99
};
1010

1111
exports.myOtherMethod = function(callback) {

0 commit comments

Comments
 (0)