You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2019/06/06 11:43:01 UTC

[karaf] 02/02: Fix WebTest itest

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git

commit 029e9e5f1aa84f949bf6e6cc96914be7f51595d4
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Wed Jun 5 18:27:17 2019 +0200

    Fix WebTest itest
---
 itests/test/src/test/java/org/apache/karaf/itests/WebTest.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/itests/test/src/test/java/org/apache/karaf/itests/WebTest.java b/itests/test/src/test/java/org/apache/karaf/itests/WebTest.java
index ce1bb29..128b013 100644
--- a/itests/test/src/test/java/org/apache/karaf/itests/WebTest.java
+++ b/itests/test/src/test/java/org/apache/karaf/itests/WebTest.java
@@ -83,9 +83,13 @@ public class WebTest extends KarafTestSupport {
         System.out.println(buffer.toString());
         assertContains("Hello World!", buffer.toString());
 
-        System.out.println(executeCommand("web:uninstall 126"));
+        System.out.println(executeCommand("web:uninstall 125"));
         listOutput = executeCommand("web:list");
         System.out.println(listOutput);
+        while (listOutput.contains("/test")) {
+            Thread.sleep(500);
+            listOutput = executeCommand("web:list");
+        }
         assertContainsNot("/test", listOutput);
     }