[logback-dev] svn commit: r2355 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran

noreply.ceki at qos.ch noreply.ceki at qos.ch
Wed Jul 15 15:16:42 CEST 2009


Author: ceki
Date: Wed Jul 15 15:16:41 2009
New Revision: 2355

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/JoranConfiguratorTest.java

Log:
- Windows can be slow at propagating file modification changes

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/JoranConfiguratorTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/JoranConfiguratorTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/JoranConfiguratorTest.java	Wed Jul 15 15:16:41 2009
@@ -259,14 +259,15 @@
     File file = new File(configFileAsStr);
     file.setLastModified(System.currentTimeMillis());
 
+    Thread.sleep(100);
     // scanning requires 16 logs
     for (int i = 0; i < 16; i++) {
       logger.debug("after " + i);
     }
 
+    // StatusPrinter.print(loggerContext);
     StatusChecker checker = new StatusChecker(loggerContext);
     assertTrue(checker.isErrorFree());
     assertTrue(checker.containsMatch("Resetting and reconfiguring context"));
-    StatusPrinter.print(loggerContext);
   }
 }


More information about the logback-dev mailing list