[logback-dev] svn commit: r699 - logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling

noreply.seb at qos.ch noreply.seb at qos.ch
Tue Oct 17 15:46:47 CEST 2006


Author: seb
Date: Tue Oct 17 15:46:47 2006
New Revision: 699

Modified:
   logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/TimeBasedRollingTest.java

Log:


Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/TimeBasedRollingTest.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/TimeBasedRollingTest.java	(original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/TimeBasedRollingTest.java	Tue Oct 17 15:46:47 2006
@@ -100,19 +100,22 @@
           + sdf.format(cal.getTime());
       cal.add(Calendar.SECOND, 1);
     }
-
+    
     System.out.println("Waiting until next second and 100 millis.");
     delayUntilNextSecond(100);
     System.out.println("Done waiting.");
-
+    
+    long now = System.currentTimeMillis();
     for (int i = 0; i < 20; i++) {
       rfa.doAppend("Hello---" + i);
       Thread.sleep(50);
     }
-
-//    for (int i = 0; i < 3; i++) {
-//      System.out.println(i + " expected filename [" + filenames[i] + "].");
-//    }
+    long newNow = System.currentTimeMillis();
+    System.out.println("Done waiting. Waited: " + (newNow - now));
+    
+    for (int i = 0; i < 3; i++) {
+      System.out.println(i + " expected filename [" + filenames[i] + "].");
+    }
 
     for (int i = 0; i < 3; i++) {
       assertTrue(Compare.compare(filenames[i], Constants.TEST_DIR_PREFIX



More information about the logback-dev mailing list