sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-testing-clients] 03/37: trivial - reduced wait time in test
Date Fri, 20 Oct 2017 14:44:22 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-clients.git

commit 79179d9f8efd609aa7e4af92f0f3fc8fec5fe417
Author: Andrei Dulvac <dulvac@apache.org>
AuthorDate: Wed Jun 8 14:30:02 2016 +0000

    trivial - reduced wait time in test
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1747400 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/testing/DelayRequestInterceptorTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/sling/testing/DelayRequestInterceptorTest.java b/src/test/java/org/apache/sling/testing/DelayRequestInterceptorTest.java
index c44d238..fc322b9 100644
--- a/src/test/java/org/apache/sling/testing/DelayRequestInterceptorTest.java
+++ b/src/test/java/org/apache/sling/testing/DelayRequestInterceptorTest.java
@@ -24,11 +24,11 @@ public class DelayRequestInterceptorTest {
 
     @Test
     public void testDelay() throws Exception {
-        DelayRequestInterceptor interceptor = new DelayRequestInterceptor(1000);
+        DelayRequestInterceptor interceptor = new DelayRequestInterceptor(700);
         long before = System.currentTimeMillis();
         interceptor.process(null, null);
         long after = System.currentTimeMillis();
-        Assert.assertTrue(after - before >= 1000);
+        Assert.assertTrue(after - before >= 700);
     }
 
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message