mirror of
https://github.com/apache/activemq.git
synced 2025-02-17 07:24:51 +00:00
Fix test case, an additional log file is retained now that we are more careful about tracking acks that are needed for recovery from the journal.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1487636 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
97e1edc20c
commit
646d0234d7
@ -1505,8 +1505,15 @@ public class DurableSubscriptionOfflineTest extends org.apache.activemq.TestSupp
|
|||||||
|
|
||||||
destroyBroker();
|
destroyBroker();
|
||||||
createBroker(false);
|
createBroker(false);
|
||||||
KahaDBPersistenceAdapter pa = (KahaDBPersistenceAdapter) broker.getPersistenceAdapter();
|
final KahaDBPersistenceAdapter pa = (KahaDBPersistenceAdapter) broker.getPersistenceAdapter();
|
||||||
assertEquals("only two journal file(s) left after restart", 2, pa.getStore().getJournal().getFileMap().size());
|
assertTrue("Should have three journal files left but was: " +
|
||||||
|
pa.getStore().getJournal().getFileMap().size(), Wait.waitFor(new Wait.Condition() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isSatisified() throws Exception {
|
||||||
|
return pa.getStore().getJournal().getFileMap().size() == 3;
|
||||||
|
}
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://issues.apache.org/jira/browse/AMQ-3768
|
// https://issues.apache.org/jira/browse/AMQ-3768
|
||||||
|
Loading…
x
Reference in New Issue
Block a user