diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslNullCipherTests.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslNullCipherTests.java index 7427c5a67e9..f57be316328 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslNullCipherTests.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/ssl/SslNullCipherTests.java @@ -7,6 +7,7 @@ package org.elasticsearch.xpack.security.transport.ssl; import org.elasticsearch.action.DocWriteResponse.Result; import org.elasticsearch.action.index.IndexResponse; +import org.elasticsearch.bootstrap.JavaVersion; import org.elasticsearch.client.Client; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.test.SecurityIntegTestCase; @@ -22,6 +23,11 @@ public class SslNullCipherTests extends SecurityIntegTestCase { assumeFalse("Can't run in a FIPS JVM", inFipsJvm()); } + @BeforeClass + public static void muteInJDK12() { + assumeFalse("https://github.com/elastic/elasticsearch/issues/37403", JavaVersion.current().equals(JavaVersion.parse("12"))); + } + @Override public boolean transportSSLEnabled() { return true;