diff --git a/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommandTests.java b/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommandTests.java index 284a5dbb481..1021d5af55a 100644 --- a/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommandTests.java +++ b/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommandTests.java @@ -9,6 +9,7 @@ package org.elasticsearch.xpack.security.cli; import com.google.common.jimfs.Configuration; import com.google.common.jimfs.Jimfs; import joptsimple.OptionSet; +import org.apache.lucene.util.Constants; import org.bouncycastle.asn1.DERIA5String; import org.bouncycastle.asn1.DEROctetString; import org.bouncycastle.asn1.DERSequence; @@ -536,6 +537,7 @@ public class HttpCertificateCommandTests extends ESTestCase { } public void testTextFileSubstitutions() throws Exception { + assumeFalse("https://github.com/elastic/elasticsearch/issues/50964", Constants.WINDOWS); CheckedBiFunction, String, Exception> copy = (source, subs) -> { try (InputStream in = new ByteArrayInputStream(source.getBytes(StandardCharsets.UTF_8)); StringWriter out = new StringWriter();