You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2017/08/23 13:08:44 UTC

activemq-artemis git commit: ARTEMIS-1367 Fixing test

Repository: activemq-artemis
Updated Branches:
  refs/heads/master aa2f0b9f1 -> cf8b42a14


ARTEMIS-1367 Fixing test


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/cf8b42a1
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/cf8b42a1
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/cf8b42a1

Branch: refs/heads/master
Commit: cf8b42a145b42a637f4d79adf1fd64c8c2908963
Parents: aa2f0b9
Author: Clebert Suconic <cl...@apache.org>
Authored: Wed Aug 23 09:08:40 2017 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Wed Aug 23 09:08:40 2017 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/critical/CriticalSimpleTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/cf8b42a1/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/critical/CriticalSimpleTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/critical/CriticalSimpleTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/critical/CriticalSimpleTest.java
index f7f3a0a..bc5f51d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/critical/CriticalSimpleTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/critical/CriticalSimpleTest.java
@@ -20,6 +20,7 @@ package org.apache.activemq.artemis.tests.integration.critical;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
 
+import org.apache.activemq.artemis.api.config.CriticalAnalyzerPolicy;
 import org.apache.activemq.artemis.api.core.ActiveMQException;
 import org.apache.activemq.artemis.core.config.Configuration;
 import org.apache.activemq.artemis.core.server.ActiveMQServer;
@@ -36,7 +37,7 @@ public class CriticalSimpleTest extends ActiveMQTestBase {
    public void testSimpleShutdown() throws Exception {
 
       Configuration configuration = createDefaultConfig(false);
-      configuration.setCriticalAnalyzerCheckPeriod(10);
+      configuration.setCriticalAnalyzerCheckPeriod(10).setCriticalAnalyzerPolicy(CriticalAnalyzerPolicy.SHUTDOWN);
       ActiveMQServer server = createServer(false, configuration, AddressSettings.DEFAULT_PAGE_SIZE, AddressSettings.DEFAULT_MAX_SIZE_BYTES);
       server.start();