mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
amendment to previously committed unit test [ci skip]
This commit is contained in:
@@ -173,8 +173,8 @@ public class FileReadWriteTests {
|
||||
try (ReadableFile readable = file.openReadable()) {
|
||||
ByteBuffer buf = ByteBuffer.wrap(actualData2);
|
||||
Thread.sleep(10);
|
||||
readable.position(1);
|
||||
assertTrue("readTask2 must be second to set its position", state.compareAndSet(1, 2));
|
||||
readable.position(1);
|
||||
readable.read(buf);
|
||||
assertTrue("readTask2 must be first to finish reading", state.compareAndSet(2, 3));
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user