mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
Reenable JvmErgonomicsTests on Windows
This commit is contained in:
parent
8d7392de35
commit
5c0ebe7b5f
@ -43,13 +43,6 @@ import static org.junit.Assert.fail;
|
|||||||
|
|
||||||
public class JvmErgonomicsTests extends LaunchersTestCase {
|
public class JvmErgonomicsTests extends LaunchersTestCase {
|
||||||
|
|
||||||
@Before
|
|
||||||
public void setUp() {
|
|
||||||
assumeFalse("https://github.com/elastic/elasticsearch/issues/44669",
|
|
||||||
System.getProperty("os.name").contains("Win")
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testExtractValidHeapSizeUsingXmx() throws InterruptedException, IOException {
|
public void testExtractValidHeapSizeUsingXmx() throws InterruptedException, IOException {
|
||||||
assertThat(
|
assertThat(
|
||||||
JvmErgonomics.extractHeapSize(JvmErgonomics.finalJvmOptions(Collections.singletonList("-Xmx2g"))),
|
JvmErgonomics.extractHeapSize(JvmErgonomics.finalJvmOptions(Collections.singletonList("-Xmx2g"))),
|
||||||
@ -144,6 +137,7 @@ public class JvmErgonomicsTests extends LaunchersTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testMaxDirectMemorySizeChoice() throws InterruptedException, IOException {
|
public void testMaxDirectMemorySizeChoice() throws InterruptedException, IOException {
|
||||||
|
assumeFalse(System.getProperty("os.name").startsWith("Windows") && JavaVersion.majorVersion(JavaVersion.CURRENT) == 8);
|
||||||
final Map<String, String> heapMaxDirectMemorySize = new HashMap<>();
|
final Map<String, String> heapMaxDirectMemorySize = new HashMap<>();
|
||||||
heapMaxDirectMemorySize.put("64M", Long.toString((64L << 20) / 2));
|
heapMaxDirectMemorySize.put("64M", Long.toString((64L << 20) / 2));
|
||||||
heapMaxDirectMemorySize.put("512M", Long.toString((512L << 20) / 2));
|
heapMaxDirectMemorySize.put("512M", Long.toString((512L << 20) / 2));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user