Skip to content

Commit a3e1587

Browse files
committed
Disable frequently failing UrlConnectionFactoryTest#testNoJarFileLeak() on Windows (#2011)
1 parent 5b77583 commit a3e1587

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
import org.junit.jupiter.api.AfterAll;
5757
import org.junit.jupiter.api.BeforeAll;
5858
import org.junit.jupiter.api.Test;
59+
import org.junit.jupiter.api.condition.DisabledOnOs;
60+
import org.junit.jupiter.api.condition.OS;
5961

6062
/**
6163
* Tests the UrlConnectionFactory
@@ -141,6 +143,7 @@ private int verifyNotModified(final URI uri, final long lastModifiedMillis) thro
141143
}
142144

143145
@Test
146+
@DisabledOnOs(value = OS.WINDOWS, disabledReason = "Fails frequently on Windows (#2011)")
144147
public void testNoJarFileLeak() throws Exception {
145148
ConfigurationSourceTest.prepareJarConfigURL();
146149
final URL url = new File("target/test-classes/jarfile.jar").toURI().toURL();

0 commit comments

Comments
 (0)