Skip to content

Commit

Permalink
fix(test): wait(d).fn -> wait(d).then(fn)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToQoz committed Dec 15, 2015
1 parent 4892e02 commit 9652ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var post = require('./post');
return req()
.then(function(res) {
if (res.statusCode === 500) {
return wait(1000).req();
return wait(1000)().then(req);
}

res.headers = ex.headers;
Expand Down

0 comments on commit 9652ecb

Please sign in to comment.