Skip to content

Commit e45675d

Browse files
committed
Use GC-free clock in GC tests
1 parent 280e319 commit e45675d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/GcFreeLoggingTestUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public static void executeLogging(final String configurationFile,
4949
System.setProperty("log4j2.enable.direct.encoders", "true");
5050
System.setProperty("log4j2.is.webapp", "false");
5151
System.setProperty("log4j.configurationFile", configurationFile);
52+
System.setProperty("log4j2.clock", "SystemMillisClock");
5253

5354
assertTrue(Constants.ENABLE_THREADLOCALS, "Constants.ENABLE_THREADLOCALS");
5455
assertTrue(Constants.ENABLE_DIRECT_ENCODERS, "Constants.ENABLE_DIRECT_ENCODERS");

0 commit comments

Comments
 (0)