diff --git a/lucene/core/src/test/org/apache/lucene/store/TestMMapDirectory.java b/lucene/core/src/test/org/apache/lucene/store/TestMMapDirectory.java index 16a5be6a7f3c..71035e79ef72 100644 --- a/lucene/core/src/test/org/apache/lucene/store/TestMMapDirectory.java +++ b/lucene/core/src/test/org/apache/lucene/store/TestMMapDirectory.java @@ -125,7 +125,7 @@ public void testMadviseAvail() throws Exception { // Opens the input with IOContext.RANDOM to ensure basic code path coverage for POSIX_MADV_RANDOM. public void testWithRandom() throws Exception { - final int size = 8 * 1024 * 1024; // large enough to trigger madvise + final int size = 8 * 1024; byte[] bytes = new byte[size]; random().nextBytes(bytes);