Skip to content

Commit

Permalink
Fixes the test in order to consume the Stream that's hanging the even…
Browse files Browse the repository at this point in the history
…t loop.
  • Loading branch information
SaltwaterC committed Mar 12, 2013
1 parent 65d0474 commit 86f0c8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/s3-get-stream.js
Expand Up @@ -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);
Expand Down

0 comments on commit 86f0c8e

Please sign in to comment.