Closed depau closed 1 year ago
I'm assuming FileBlockDeviceDriver is only used in tests.
FileBlockDeviceDriver
This change makes all writes to the backing RandomAccessFile synchronous by opening them as "rws", which will make tests more reliable.
RandomAccessFile
"rws"
This is not an issue with your tests, but it's a bit of a pain with the tests for my block device input/output streams.
https://docs.oracle.com/javase/7/docs/api/java/io/RandomAccessFile.html#RandomAccessFile(java.io.File,%20java.lang.String)
I'm assuming
FileBlockDeviceDriver
is only used in tests.This change makes all writes to the backing
RandomAccessFile
synchronous by opening them as"rws"
, which will make tests more reliable.This is not an issue with your tests, but it's a bit of a pain with the tests for my block device input/output streams.
https://docs.oracle.com/javase/7/docs/api/java/io/RandomAccessFile.html#RandomAccessFile(java.io.File,%20java.lang.String)