polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [27/28] zest-qi4j git commit: CircuitBreaker, minor: attempt to fix test that intermittently fail
Date Fri, 17 Apr 2015 16:43:06 GMT
CircuitBreaker, minor: attempt to fix test that intermittently fail

on slow machines like the Cloudbees LXC containers


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/e6ea4ec2
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/e6ea4ec2
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/e6ea4ec2

Branch: refs/heads/develop
Commit: e6ea4ec29b56c0ac24153bda287a8d5e2c6bb165
Parents: d7159b1
Author: Paul Merlin <paul@nosphere.org>
Authored: Sun Apr 5 18:52:58 2015 +0200
Committer: Paul Merlin <paul@nosphere.org>
Committed: Sun Apr 5 18:52:58 2015 +0200

----------------------------------------------------------------------
 .../java/org/qi4j/library/circuitbreaker/CircuitBreakerTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/e6ea4ec2/libraries/circuitbreaker/src/test/java/org/qi4j/library/circuitbreaker/CircuitBreakerTest.java
----------------------------------------------------------------------
diff --git a/libraries/circuitbreaker/src/test/java/org/qi4j/library/circuitbreaker/CircuitBreakerTest.java
b/libraries/circuitbreaker/src/test/java/org/qi4j/library/circuitbreaker/CircuitBreakerTest.java
index 783237f..b1c2ead 100644
--- a/libraries/circuitbreaker/src/test/java/org/qi4j/library/circuitbreaker/CircuitBreakerTest.java
+++ b/libraries/circuitbreaker/src/test/java/org/qi4j/library/circuitbreaker/CircuitBreakerTest.java
@@ -26,7 +26,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 import static com.jayway.awaitility.Awaitility.await;
-import static com.jayway.awaitility.Duration.FIVE_HUNDRED_MILLISECONDS;
+import static com.jayway.awaitility.Duration.ONE_SECOND;
 import static org.hamcrest.core.Is.is;
 import static org.junit.Assert.assertThat;
 
@@ -131,7 +131,7 @@ public class CircuitBreakerTest
         // END SNIPPET: direct
         assertThat( cb.status(), CoreMatchers.equalTo( CircuitBreaker.Status.off ) );
         System.out.println( "Wait..." );
-        await().atMost( FIVE_HUNDRED_MILLISECONDS ).until( circuitBreakerStatus(), is( CircuitBreaker.Status.on
) );
+        await().atMost( ONE_SECOND ).until( circuitBreakerStatus(), is( CircuitBreaker.Status.on
) );
 
         // START SNIPPET: direct
         // CircuitBreaker is back on


Mime
View raw message