[logback-dev] svn commit: r2371 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/issue/lbclassic135/lbclassic139

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Jul 23 21:23:30 CEST 2009


Author: ceki
Date: Thu Jul 23 21:23:30 2009
New Revision: 2371

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/issue/lbclassic135/lbclassic139/Accessor.java

Log:
- Added Thread.yield() in order to avoid test failures from time to time

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/issue/lbclassic135/lbclassic139/Accessor.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/issue/lbclassic135/lbclassic139/Accessor.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/issue/lbclassic135/lbclassic139/Accessor.java	Thu Jul 23 21:23:30 2009
@@ -21,6 +21,7 @@
 
   public void run() {
     System.out.println("enter Accessor.run");
+    Thread.yield();
     while (!isDone()) {
       logger.info("Current worker status is: {}.", worker);
     }


More information about the logback-dev mailing list