Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 7d8ff68

Browse files
committed
Note why DRFATestCase seems slow
1 parent ef5a79d commit 7d8ff68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/src/java/org/apache/log4j/DRFATestCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ public void testMinuteRollover() throws IOException, InterruptedException {
415415
cal.set(Calendar.MILLISECOND, 0);
416416
cal.add(Calendar.MINUTE, 1);
417417
long until = cal.getTime().getTime();
418+
System.out.println("Sleep until three seconds into next minute...");
418419
Thread.sleep(until - now);
419420
root.info("Hello, World");
420421
assertTrue(firstFile.exists());
@@ -472,6 +473,7 @@ public void testBlockedRollover() throws IOException, InterruptedException {
472473
//
473474
// sleep until three seconds into next minute
474475
//
476+
System.out.println("Sleep until three seconds into next minute...");
475477
Thread.sleep(63000 - (start.getTime() % 60000));
476478
//
477479
// should trigger failed rollover

0 commit comments

Comments
 (0)