[TEST] Disable testRamBytesUsed on JDK 9

This commit is contained in:
Yannick Welsch 2017-01-11 10:50:17 +01:00
parent 91b5669d99
commit baef86b9d3
1 changed files with 2 additions and 0 deletions

View File

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