diff --git a/test/test-http.js b/test/test-http.js index 3e5ac8db7..f03872db5 100644 --- a/test/test-http.js +++ b/test/test-http.js @@ -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) {