You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll be submitting a PR for this in just a bit. It should be noted that correctly implementing FlushAsync is more of a band-aid over the fundamental underlying issue: mocked file streams do not share their data buffer. This means that concurrent MockFileStreams, opened on the same file, do not behave like real streams at all.
Activity
[-]FlushAsync doesn't update file contents[/-][+]`FlushAsync` doesn't update file contents[/+]fgreinacher commentedon Mar 10, 2023
Thanks for reporting!
Probably we need to override
FlushAsyncsimilar to how we overrideFlush.cryocz commentedon Mar 10, 2023
I'll be submitting a PR for this in just a bit. It should be noted that correctly implementing
FlushAsyncis more of a band-aid over the fundamental underlying issue: mocked file streams do not share their data buffer. This means that concurrentMockFileStreams, opened on the same file, do not behave like real streams at all.fix: ensure `FlushAsync` behaves like `Flush` (#960)
github-actions commentedon Apr 11, 2023
This is addressed in release v19.2.4.