Skip to content

Commit 9a10f02

Browse files
committed
try expected: <4> but was: <1> failure
1 parent b163f86 commit 9a10f02

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

log4j-1.2-api/src/test/java/org/apache/log4j/config/AbstractLog4j1ConfigurationTest.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,16 @@ private int checkFilters(final org.apache.log4j.spi.Filter filter) {
473473
assertNull(filter.getNext(), "found chain of Log4j 1.x filters");
474474
return count;
475475
}
476-
// TODO Appender, loggerContext
476+
// #### tempDir ######### /tmp/junit-8800472835944933796
477+
// ######### folder /tmp/junit12627114905753561837/junit16127502666327035264
478+
477479
@Test
478-
// @LoggerContextSource("log4j-multipleFilters.xml")
479480
public void testMultipleFilters() throws Exception {
480-
System.setProperty("test.tmpDir", tempDir.getCanonicalPath());
481+
// Create a subdirectory inside the tempDir
482+
File nestedDir = new File(tempDir, "junit" + System.nanoTime());
483+
System.out.println("#############" + nestedDir.getCanonicalPath());
484+
485+
System.setProperty("test.tmpDir", nestedDir.getCanonicalPath());
481486

482487
try (final LoggerContext loggerContext = configure("log4j-multipleFilters")) {
483488
final Configuration configuration = loggerContext.getConfiguration();

log4j-1.2-api/src/test/java/org/apache/log4j/config/PropertiesRollingWithPropertiesTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public class PropertiesRollingWithPropertiesTest {
3535

3636
@BeforeAll
3737
public static void setupSystemProperties() {
38-
// final File file = new File(tempDir, TEST_DIR);
39-
4038
// Set system properties as a replacement for SystemPropertyTestRule
4139
System.setProperty("test.directory", TEST_DIR);
4240
System.setProperty("log4j.configuration", "target/test-classes/log4j1-rolling-properties.properties");

0 commit comments

Comments
 (0)