You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by en...@apache.org on 2020/09/23 20:41:51 UTC
[sling-org-apache-sling-testing-clients] branch master updated:
SLING-9765 Stabilize the SlingClientWaitExistsTest#testWaitExistsTimeout
test
This is an automated email from the ASF dual-hosted git repository.
enorman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-clients.git
The following commit(s) were added to refs/heads/master by this push:
new dbffe7f SLING-9765 Stabilize the SlingClientWaitExistsTest#testWaitExistsTimeout test
dbffe7f is described below
commit dbffe7fb99c2c03dd4aaf7bd50e45f1057d1792d
Author: Eric Norman <en...@apache.org>
AuthorDate: Wed Sep 23 13:41:40 2020 -0700
SLING-9765 Stabilize the SlingClientWaitExistsTest#testWaitExistsTimeout
test
---
.../sling/testing/clients/SlingClientWaitExistsTest.java | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/test/java/org/apache/sling/testing/clients/SlingClientWaitExistsTest.java b/src/test/java/org/apache/sling/testing/clients/SlingClientWaitExistsTest.java
index 05c1908..8d3ee85 100644
--- a/src/test/java/org/apache/sling/testing/clients/SlingClientWaitExistsTest.java
+++ b/src/test/java/org/apache/sling/testing/clients/SlingClientWaitExistsTest.java
@@ -16,21 +16,22 @@
*/
package org.apache.sling.testing.clients;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+import java.io.IOException;
+import java.util.concurrent.TimeoutException;
+
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.entity.StringEntity;
import org.apache.http.protocol.HttpContext;
import org.apache.http.protocol.HttpRequestHandler;
-import org.junit.Assert;
import org.junit.ClassRule;
import org.junit.Test;
-import java.io.IOException;
-import java.util.concurrent.TimeoutException;
-
-import static org.junit.Assert.*;
-
public class SlingClientWaitExistsTest {
private static final String GET_WAIT_PATH = "/test/wait/resource";
private static final String OK_RESPONSE = "TEST_OK";
@@ -70,7 +71,7 @@ public class SlingClientWaitExistsTest {
@Test
public void testWaitExistsTimeout() throws Exception {
callCount = 0; // reset counter
- waitCount = 40; // to be sure we reach timeout
+ waitCount = 200; // to be sure we reach timeout
SlingClient c = new SlingClient(httpServer.getURI(), "user", "pass");
try {
c.waitExists(GET_WAIT_PATH, 1000, 10);