From b867c3299bc6314b276f2f14f90847063df93bde Mon Sep 17 00:00:00 2001 From: Andy Chou Date: Tue, 16 Jan 2018 12:01:33 -0800 Subject: [PATCH] end() is the official way to release a Writable stream --- test/downloadutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();