You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ff...@apache.org on 2019/01/15 06:59:11 UTC
[karaf] branch master updated: give more time to let artemis server
up, avoid jms related itests failure
This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new e246522 give more time to let artemis server up, avoid jms related itests failure
e246522 is described below
commit e2465229ea937f2d2bea0112c7b17fd623cac053
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Tue Jan 15 14:58:57 2019 +0800
give more time to let artemis server up, avoid jms related itests failure
---
itests/test/src/test/java/org/apache/karaf/itests/XATest.java | 1 +
.../src/test/java/org/apache/karaf/itests/examples/JmsExampleTest.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/itests/test/src/test/java/org/apache/karaf/itests/XATest.java b/itests/test/src/test/java/org/apache/karaf/itests/XATest.java
index c929c92..4854ab1 100644
--- a/itests/test/src/test/java/org/apache/karaf/itests/XATest.java
+++ b/itests/test/src/test/java/org/apache/karaf/itests/XATest.java
@@ -73,6 +73,7 @@ public class XATest extends KarafTestSupport {
@Test
public void test() throws Exception {
+ Thread.sleep(10000);//wait and until artemis server up
System.out.println(executeCommand("jms:info artemis"));
System.out.println("== Installing Derby");
diff --git a/itests/test/src/test/java/org/apache/karaf/itests/examples/JmsExampleTest.java b/itests/test/src/test/java/org/apache/karaf/itests/examples/JmsExampleTest.java
index f26d5d5..38214ec 100644
--- a/itests/test/src/test/java/org/apache/karaf/itests/examples/JmsExampleTest.java
+++ b/itests/test/src/test/java/org/apache/karaf/itests/examples/JmsExampleTest.java
@@ -64,6 +64,7 @@ public class JmsExampleTest extends KarafTestSupport {
@Test
public void test() throws Exception {
+ Thread.sleep(10000);//wait until artemis up
String output = executeCommand("jms:info artemis");
System.out.println(output);
assertContains("ActiveMQ", output);