mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Make sure we try to read as soon as possible. Otherwise we may miss a chunk if timing is off.
This commit is contained in:
parent
345ba4d8a8
commit
89f2f7d39b
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ module.exports.readAll = function(stream) {
|
||||||
stream.on('readable', readableListener)
|
stream.on('readable', readableListener)
|
||||||
stream.on('end', endListener)
|
stream.on('end', endListener)
|
||||||
|
|
||||||
|
readableListener()
|
||||||
|
|
||||||
return resolver.promise.finally(function() {
|
return resolver.promise.finally(function() {
|
||||||
stream.removeListener('error', errorListener)
|
stream.removeListener('error', errorListener)
|
||||||
stream.removeListener('readable', readableListener)
|
stream.removeListener('readable', readableListener)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue