activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1434074 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubSelectorDelayTest.java
Date Wed, 16 Jan 2013 18:10:37 GMT
Author: tabish
Date: Wed Jan 16 18:10:36 2013
New Revision: 1434074

URL: http://svn.apache.org/viewvc?rev=1434074&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/DurableSubSelectorDelayTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubSelectorDelayTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubSelectorDelayTest.java?rev=1434074&r1=1434073&r2=1434074&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubSelectorDelayTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubSelectorDelayTest.java
Wed Jan 16 18:10:36 2013
@@ -76,11 +76,11 @@ public class DurableSubSelectorDelayTest
         TimeUnit.MINUTES.sleep(2);
 
         final KahaDBPersistenceAdapter pa = (KahaDBPersistenceAdapter) broker.getPersistenceAdapter();
-        assertTrue("only one journal file should be left ", Wait.waitFor(new Wait.Condition()
{
+        assertTrue("only two journal files should be left ", 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(2)));
 



Mime
View raw message