diff --git a/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java b/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java index 35ab3219fd..d6c64f4748 100644 --- a/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java +++ b/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java @@ -51,6 +51,7 @@ public class PreallocationJournalLatencyTest { File dataDirectory = new File("./target/activemq-data/kahadb" + randInt); KahaDBStore store = new KahaDBStore(); + store.setJournalMaxFileLength(16*1204*1024); store.deleteAllMessages(); store.setDirectory(dataDirectory); store.setPreallocationStrategy(preallocationStrategy); @@ -68,7 +69,7 @@ public class PreallocationJournalLatencyTest { ByteSequence byteSequence = new ByteSequence(new byte[8*1024]); TimeStatisticImpl timeStatistic = new TimeStatisticImpl("append", "duration"); - for (int i=0;i<300000; i++) { + for (int i=0;i<5000; i++) { final long start = System.currentTimeMillis(); journal.write(byteSequence, true); timeStatistic.addTime(System.currentTimeMillis() - start);