activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1434067 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
Date Wed, 16 Jan 2013 18:04:32 GMT
Author: tabish
Date: Wed Jan 16 18:04:31 2013
New Revision: 1434067

URL: http://svn.apache.org/viewvc?rev=1434067&view=rev
Log:
fix test breakage after: https://issues.apache.org/jira/browse/AMQ-3833

The producerAudit is only written out on change so in this test it holds onto another log
file meaning there are two left instead of one.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java?rev=1434067&r1=1434066&r2=1434067&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
Wed Jan 16 18:04:31 2013
@@ -114,12 +114,12 @@ public class DurableSubProcessMultiResta
         assertTrue("no exceptions: " + exceptions, exceptions.isEmpty());
 
         final KahaDBPersistenceAdapter pa = (KahaDBPersistenceAdapter) broker.getPersistenceAdapter();
-        assertTrue("only one journal file should be left: " + pa.getStore().getJournal().getFileMap().size(),
+        assertTrue("only two journal files should be left: " + pa.getStore().getJournal().getFileMap().size(),
             Wait.waitFor(new Wait.Condition() {
 
                 @Override
                 public boolean isSatisified() throws Exception {
-                    return pa.getStore().getJournal().getFileMap().size() == 1;
+                    return pa.getStore().getJournal().getFileMap().size() == 2;
                 }
             }, TimeUnit.MINUTES.toMillis(3))
         );



Mime
View raw message