You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by du...@apache.org on 2018/01/18 14:50:30 UTC

[sling-org-apache-sling-testing-clients] branch master updated: @trivial - The poller should wait for the delay even in case of exceptions

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 <an...@gmail.com>
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
['"commits@sling.apache.org" <co...@sling.apache.org>'].