mirror of https://github.com/apache/lucene.git
This commit is contained in:
parent
a4055dae62
commit
61e5da3fe4
|
@ -109,10 +109,11 @@ public class TestMMapDirectory extends BaseDirectoryTestCase {
|
|||
out.writeBytes(bytes, 0, bytes.length);
|
||||
}
|
||||
|
||||
final IndexInput in = dir.openInput("test", IOContext.RANDOM);
|
||||
try (final IndexInput in = dir.openInput("test", IOContext.RANDOM)) {
|
||||
final byte[] readBytes = new byte[size];
|
||||
in.readBytes(readBytes, 0, readBytes.length);
|
||||
assertArrayEquals(bytes, readBytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue