Closed hmoragrega closed 2 years ago
I'll work on the test side, thanks!
@hmoragrega thanks for noticing this bug. I'm trying to fix the test cases as requested by @puellanivis and your commits will be merged as part of #499 once that test cases are ok
Thanks for spotting the issue and getting us started on a fix @hmoragrega
No worries! I couldn't found time to apply the latest changes these week, glad you can take it from here
During the last chunk of a sequential write, when the reader already returned
io.EOF
, if the writer fails, the error is lost.This happens due to
err
being alreadyio.EOF
so the condition to overwrite the error with the write error is falseI've provided a new test, not sure if it could be tested as a test case on another one though.