Closed CMCDragonkai closed 1 year ago
I can't recreate this bug. Using the snippet above I end up with the expected behaviour. I did have to make 1 change however. Using the path './tmp/s'
resulted in a error event with the error ErrorEncryptedFSError: ENOENT: no such file or directory, ./tmp/s
, a close
event but no finish
event. Maybe that was the problem?
Doing the same thing with the FS but using a path that can't be created results in the same behaviour where we get the ENOENT
error event, a close event and no finish event.
Using a path that can exist for the EFS results in the expected behaviour.
In any case I'll mark this as resolved when #74 merges.
Fixed by #74.
Describe the bug
Some testing from #71 show that streams are not emitting the
close
event after ending.Because streams have auto close enabled, after the
finish
event, aclose
event should be emitted.In the above, a regular FS stream does end up emitting the close event.
However in our streams, this is not occurring. Not sure why.
It seems calling
destroy()
does not result in a close event.This may be an upstream
readable-stream
bug. But the latestreadable-stream
is significantly different. We can try upgrading.New tests should be written for these streams to check for the
close
event.To Reproduce
Expected behavior
Should say: