amendment to previously committed unit test [ci skip]

This commit is contained in:
Sebastian Stenzel
2016-02-20 18:10:26 +01:00
parent a5e6c9fb9b
commit 8a7fca7a95

View File

@@ -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;