Skip to content
Permalink
Browse files

increase wait in deferred test

  • Loading branch information...
rtsan committed Dec 28, 2015
1 parent 2f27e71 commit 3a371f239a54acedb17eb14884bf2eb9b2a93ae5
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/mocha/enchant.js/test_deferred.js
@@ -19,14 +19,14 @@ describe("Deferred", function(){
result = true;
});
expect(result).to.be.false;
setTimeout(done, 100);
setTimeout(done, 150);
setTimeout(function(){
expect(result).to.be.true;
}, 50);
});

it("should execute chained Deferred", function(done){
setTimeout(done, 100);
setTimeout(done, 150);
var result1 = result2 = false;
Deferred.next(function(){
result1 = true;
@@ -41,7 +41,7 @@ describe("Deferred", function(){
});

it("should pass returned value to chained next Dererred", function(done) {
setTimeout(done, 100);
setTimeout(done, 150);
var val;
Deferred.next(function(){
return 'foo';
@@ -64,7 +64,7 @@ describe("Deferred", function(){
});

it("should handle the error", function(done){
setTimeout(done, 100);
setTimeout(done, 150);
var result1 = result2 = false;
Deferred.next(function(){
throw new Error('fail');
@@ -161,7 +161,7 @@ describe("Deferred", function(){
});

it("should handle the error when execute parallel", function(done){
setTimeout(done, 100);
setTimeout(done, 150);
var result = false, counter = 0;
Deferred.parallel([
Deferred.next(function(){

0 comments on commit 3a371f2

Please sign in to comment.
You can’t perform that action at this time.