Apache Lucene open-source search software
LUCENE-7595: Disable another test not compatible with RamUsageTester
Uwe Schindlerd65c02e8cc14
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.javaindex 9ebacf7292a..3acc3ea9b59 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java@@ -381,6 +381,8 @@ public class TestLRUQueryCache extends LuceneTestCase {// by the cache itself, not cache entries, and we want to make sure that// memory usage is not grossly underestimated.public void testRamBytesUsedConstantEntryOverhead() throws IOException {+ assumeFalse("LUCENE-7595: RamUsageTester does not work exact in Java 9 (estimations for maps and lists)", Constants.JRE_IS_MINIMUM_JAVA9);+final LRUQueryCache queryCache = new LRUQueryCache(1000000, 10000000, context -> true);final RamUsageTester.Accumulator acc = new RamUsageTester.Accumulator() {