activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] 01/03: NO-JIRA Speeding up tests
Date Thu, 01 Aug 2019 20:15:28 GMT
This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit 21af85bd94ca4612dc1f10f1431963ea99334124
Author: Clebert Suconic <clebertsuconic@apache.org>
AuthorDate: Wed Jul 31 12:20:20 2019 -0400

    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
---
 .../java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
b/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
index 22b3173..a318e98 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
@@ -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_PASS
[...]
 
+      // 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;
    }
 


Mime
View raw message