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

noreply.ceki at qos.ch noreply.ceki at qos.ch
Mon Sep 8 21:55:38 CEST 2008


Author: ceki
Date: Mon Sep  8 21:55:38 2008
New Revision: 1803

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/control/ScenarioMaker.java

Log:
sometimes the scenario queue gets empty before it is supposed to
this change reduces the probability of that happening

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/control/ScenarioMaker.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/control/ScenarioMaker.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/control/ScenarioMaker.java	Mon Sep  8 21:55:38 2008
@@ -45,6 +45,11 @@
     // add an empty string to get going
     queue.add("");
 
+    // add another string to reduce the probability of having an 
+    // empty queue (this happens when we create several leaf nodes
+    // successively
+    queue.add("xxxx");
+    
     while (loggerCreationCount < len) {
       if (queue.isEmpty()) {
         throw new IllegalStateException("Queue cannot be empty.");


More information about the logback-dev mailing list