You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2020/03/20 14:56:53 UTC

[sling-org-apache-sling-scripting-bundle-tracker-it] branch master updated: made tests more resilient - reduced waiting period

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

radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-bundle-tracker-it.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f7856f  made tests more resilient - reduced waiting period
8f7856f is described below

commit 8f7856f9737888554cea07daf4989a0ef126b075
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Fri Mar 20 15:56:35 2020 +0100

    made tests more resilient - reduced waiting period
---
 .../sling/scripting/bundle/tracker/it/AbstractEndpointTestBase.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/it/src/test/java/org/apache/sling/scripting/bundle/tracker/it/AbstractEndpointTestBase.java b/it/src/test/java/org/apache/sling/scripting/bundle/tracker/it/AbstractEndpointTestBase.java
index 852c205..e52a18c 100644
--- a/it/src/test/java/org/apache/sling/scripting/bundle/tracker/it/AbstractEndpointTestBase.java
+++ b/it/src/test/java/org/apache/sling/scripting/bundle/tracker/it/AbstractEndpointTestBase.java
@@ -56,7 +56,7 @@ import org.junit.ClassRule;
 
 public abstract class AbstractEndpointTestBase {
 
-    protected int contentFindTimeout = 20000;
+    protected int contentFindTimeout = 3000;
     protected int contentFindRetryDelay = 1000;
     private static CloseableHttpClient httpClient;
 
@@ -102,7 +102,7 @@ public abstract class AbstractEndpointTestBase {
             document = Jsoup.parse(response.getEntity().getContent(), StandardCharsets.UTF_8.name(),
                     System.getProperty(ITCustomizer.BASE_URL_PROP, ITCustomizer.BASE_URL_PROP +
                             "_IS_NOT_SET"));
-            documentMap.put(httpMethod + ":" + uri, document);
+            documentMap.put(httpMethod + ":" + uri.toString(), document);
         }
         return document;
     }