diff --git a/test/downloadutils.js b/test/downloadutils.js index df4c664fa..2503d7ba6 100644 --- a/test/downloadutils.js +++ b/test/downloadutils.js @@ -75,7 +75,7 @@ function downloadFile(file, url, callback, redirects) { }); response.pipe(stream); stream.on('finish', function() { - stream.close(); + stream.end(); if (!completed) { completed = true; callback();