[TEST] Disable testRamBytesUsed on JDK 9
This commit is contained in:
parent
91b5669d99
commit
baef86b9d3
|
@ -22,11 +22,13 @@ package org.elasticsearch.index.engine;
|
|||
import org.apache.lucene.util.BytesRefBuilder;
|
||||
import org.apache.lucene.util.RamUsageTester;
|
||||
import org.apache.lucene.util.TestUtil;
|
||||
import org.elasticsearch.bootstrap.JavaVersion;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
public class LiveVersionMapTests extends ESTestCase {
|
||||
|
||||
public void testRamBytesUsed() throws Exception {
|
||||
assumeTrue("Test disabled for JDK 9", JavaVersion.current().compareTo(JavaVersion.parse("9")) < 0);
|
||||
LiveVersionMap map = new LiveVersionMap();
|
||||
for (int i = 0; i < 100000; ++i) {
|
||||
BytesRefBuilder uid = new BytesRefBuilder();
|
||||
|
|
Loading…
Reference in New Issue