Explorar el Código

Explicitly resume stream after adding listener

Simon Detheridge hace 6 años
padre
commit
304fdfd35c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      services/filestore/test/acceptance/js/FilestoreTests.js

+ 1 - 0
services/filestore/test/acceptance/js/FilestoreTests.js

@@ -36,6 +36,7 @@ function streamToString(stream) {
     stream.on('data', chunk => chunks.push(chunk))
     stream.on('error', reject)
     stream.on('end', () => resolve(Buffer.concat(chunks).toString('utf8')))
+    stream.resume()
   })
 }