This is an automated email from the ASF dual-hosted git repository.
dulvac 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 2393e4b @trivial - The poller should wait for the delay even in case
of exceptions
2393e4b is described below
commit 2393e4b175ead7e2ddb7d777356bac97973d4dc4
Author: Andrei Tuicu <[email protected]>
AuthorDate: Thu Jan 18 16:42:40 2018 +0200
@trivial - The poller should wait for the delay even in case of exceptions
---
.../java/org/apache/sling/testing/clients/util/poller/Polling.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java
b/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java
index 064bbcc..f40a610 100644
--- a/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java
+++ b/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java
@@ -107,12 +107,10 @@ public class Polling implements Callable<Boolean> {
if (success) {
return;
}
- Thread.sleep(delay);
- } catch (InterruptedException e) {
- throw e;
} catch (Exception e) {
lastException = e;
}
+ Thread.sleep(delay);
} while (System.currentTimeMillis() < start + effectiveTimeout);
throw new TimeoutException(String.format(message(), effectiveTimeout,
delay));
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].