This is an automated email from the ASF dual-hosted git repository. vy pushed a commit to branch 2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit a3e1587e321dcad7cc3cae0f5fcac911b9d7341f Author: Volkan Yazıcı <vol...@yazi.ci> AuthorDate: Mon Nov 27 20:24:36 2023 +0100 Disable frequently failing `UrlConnectionFactoryTest#testNoJarFileLeak()` on Windows (#2011) --- .../org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java index 3325b6be2b..c5912fc77e 100644 --- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java +++ b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java @@ -56,6 +56,8 @@ import org.eclipse.jetty.servlet.ServletHolder; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.OS; /** * Tests the UrlConnectionFactory @@ -141,6 +143,7 @@ public class UrlConnectionFactoryTest { } @Test + @DisabledOnOs(value = OS.WINDOWS, disabledReason = "Fails frequently on Windows (#2011)") public void testNoJarFileLeak() throws Exception { ConfigurationSourceTest.prepareJarConfigURL(); final URL url = new File("target/test-classes/jarfile.jar").toURI().toURL();