logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r386801 - /logging/log4j/trunk/tests/src/java/org/apache/log4j/AsyncAppenderTestCase.java
Date Sat, 18 Mar 2006 03:44:13 GMT
Author: carnold
Date: Fri Mar 17 19:44:11 2006
New Revision: 386801

URL: http://svn.apache.org/viewcvs?rev=386801&view=rev
Log:
Bug 38982: Adjust messages buffered expected  before blocking begins

Modified:
    logging/log4j/trunk/tests/src/java/org/apache/log4j/AsyncAppenderTestCase.java

Modified: logging/log4j/trunk/tests/src/java/org/apache/log4j/AsyncAppenderTestCase.java
URL: http://svn.apache.org/viewcvs/logging/log4j/trunk/tests/src/java/org/apache/log4j/AsyncAppenderTestCase.java?rev=386801&r1=386800&r2=386801&view=diff
==============================================================================
--- logging/log4j/trunk/tests/src/java/org/apache/log4j/AsyncAppenderTestCase.java (original)
+++ logging/log4j/trunk/tests/src/java/org/apache/log4j/AsyncAppenderTestCase.java Fri Mar
17 19:44:11 2006
@@ -207,10 +207,10 @@
     Vector events = blockableAppender.getVector();
 
     //
-    //   0-1 popped off of buffer by dispatcher before being blocked
+    //   0-5 popped off of buffer by dispatcher before being blocked
     //   5 in buffer before it filled up
     //   1 before Thread.sleep in greeter
-    assertEquals(3, events.size()/2);
+    assertTrue(events.size() <= 11);
   }
 
   /**
@@ -430,11 +430,11 @@
         asyncAppender.close();
         Vector events = blockableAppender.getVector();
         //
-        //  0-1 event pulled from buffer by dispatcher before blocking
+        //  0-5 event pulled from buffer by dispatcher before blocking
         //  5 events in buffer
         //  1 summary event
         //
-        assertEquals(3, events.size()/2);
+        assertTrue(events.size() <= 11);
         //
         //  last message should start with "Discarded"
         LoggingEvent event = (LoggingEvent) events.get(events.size() - 1);



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message