From 86f0c8e06671e5c0203da20c2da2ff8b928b1bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Rusu?= Date: Tue, 12 Mar 2013 16:09:17 +0200 Subject: [PATCH] Fixes the test in order to consume the Stream that's hanging the event loop. --- tests/s3-get-stream.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/s3-get-stream.js b/tests/s3-get-stream.js index 493d482..57cc640 100644 --- a/tests/s3-get-stream.js +++ b/tests/s3-get-stream.js @@ -22,7 +22,10 @@ s3.putFile(path, './data/foo.txt', false, {}, function (err, res) { s3.get(path, 'stream', function (err, res) { callbacks.get++; assert.ifError(err); + assert.ok(res instanceof Stream); + res.resume(); + s3.del(path, function (err) { callbacks.del++; assert.ifError(err);