Permalink
Browse files

more delays, delay test still passes

  • Loading branch information...
1 parent 03d4bd3 commit c157a3762dd50a9c4942a9c3588dddcfba067d45 @substack committed Dec 17, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 test/delayed.js
View
@@ -7,8 +7,11 @@ test('bounce', function (t) {
var p0 = Math.floor(Math.random() * (Math.pow(2,16) - 1e4) + 1e4);
var s0 = http.createServer(function (req, res) {
res.setHeader('content-type', 'text/plain');
- res.write('beep boop');
- res.end();
+ res.write('beep ');
+ setTimeout(function () {
+ res.write('boop');
+ res.end();
+ }, 100);
});
s0.listen(p0, connect);

0 comments on commit c157a37

Please sign in to comment.