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

noreply.ceki at qos.ch noreply.ceki at qos.ch
Tue Mar 11 09:16:23 CET 2008


Author: ceki
Date: Tue Mar 11 09:16:23 2008
New Revision: 1638

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java

Log:
- Give the server more time to consume the message. This changed is needed on Linux platforms

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java	Tue Mar 11 09:16:23 2008
@@ -190,9 +190,9 @@
     synchronized (simpleSocketServer) {
       simpleSocketServer.wait(1000);  
     }
-    // give the server a little more time
-    Thread.yield();
+    Thread.yield(); // give the server a little more time
     logger.debug("test msg 2");
+    Thread.yield(); // give the server a little more time
     
     simpleSocketServer.close();
     simpleSocketServer.join(2000);
@@ -213,6 +213,7 @@
     root.addAppender(la);
     simpleSocketServer = new SimpleSocketServer(serverLC, port);
     simpleSocketServer.start();
+    Thread.yield();
   }
 
   



More information about the logback-dev mailing list