NO-JIRA Speeding up tests

When it comes to the testsuite, we don't need timed buffers kicking too much.
This should bring some speed for our testsuite
This commit is contained in:
Clebert Suconic 2019-07-31 12:20:20 -04:00
parent d77edb82a7
commit 21af85bd94
1 changed files with 3 additions and 0 deletions

View File

@ -476,6 +476,9 @@ public abstract class ActiveMQTestBase extends Assert {
protected ConfigurationImpl createBasicConfig(final int serverID) {
ConfigurationImpl configuration = new ConfigurationImpl().setSecurityEnabled(false).setJournalMinFiles(2).setJournalFileSize(100 * 1024).setJournalType(getDefaultJournalType()).setJournalDirectory(getJournalDir(serverID, false)).setBindingsDirectory(getBindingsDir(serverID, false)).setPagingDirectory(getPageDir(serverID, false)).setLargeMessagesDirectory(getLargeMessagesDir(serverID, false)).setJournalCompactMinFiles(0).setJournalCompactPercentage(0).setClusterPassword(CLUSTER_PASSWORD).setJournalDatasync(false);
// When it comes to the testsuite, we don't need any batching, I will leave some minimal batching to exercise the codebase
configuration.setJournalBufferTimeout_AIO(100).setJournalBufferTimeout_NIO(100);
return configuration;
}