mirror of
https://github.com/apache/activemq.git
synced 2025-03-02 14:19:10 +00:00
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. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1434067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
59d13ad913
commit
f551570d4c
@ -114,12 +114,12 @@ public class DurableSubProcessMultiRestartTest {
|
||||
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))
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user