Skip to content

Commit

Permalink
Fix flanky test on timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Apr 2, 2015
1 parent 1556085 commit 46d0d4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test-http.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ s.on('/empty', function (req, res) {
});

s.on('/404', function (req, res) {
res.statusCode = 404;
res.end('not');
setTimeout(function () {
res.statusCode = 404;
res.end('not');
}, 10);
});

tape('setup', function (t) {
Expand Down

0 comments on commit 46d0d4a

Please sign in to comment.