Permalink
Browse files

[test fix] Fix misconception in "streaming" test

  • Loading branch information...
1 parent 5a4de9c commit ca48bde08d131c3b9b4424093082a4edd1169eb5 @indexzero indexzero committed with pksunkara Jan 23, 2012
Showing with 6 additions and 3 deletions.
  1. +1 −0 test/fixtures/pipe-write-test.txt
  2. +5 −3 test/streaming-test.js
@@ -0,0 +1 @@
+hello world
View
@@ -15,11 +15,13 @@ vows.describe('union/streaming').addBatch({
before: [
function (req, res, next) {
req.on('end', function () {
- self.callback(null, req.chunks);
+ req.pipe(res);
+ process.nextTick(function () {
+ self.callback(null, chunks);
+ })
});
}
- ],
- stream: true
+ ]
}).listen(9000, function () {
request.post('http://localhost:9000').write('hello world');
});

0 comments on commit ca48bde

Please sign in to comment.