Testing sync
and bypassCache
for WriteStream
and ReadStream
#4
Labels
enhancement
New feature or request
medium
Oh you have some experience with programming huh! Come on solve this then
Testing sync and bypass.Cache flags for 'WriteStream' and 'ReadStream' should validate these critical behaviors:
Confirm
WriteStream
withsync=true
ensures that data is instantly stored to disk (use direct disk reads to test), whereassync=false
may postpone the writing by some mechanism say simulating a heavy filesystem task in a go routine.Second, ensure that
ReadStream
withbypassCache=true
always reads from disk, even if data is cached (check by updating the underlying file and validating ReadStream provides the updated data), whereasbypassCache=false
should return cached data if available.The text was updated successfully, but these errors were encountered: