[java-support] branch master updated: add dither to delays to habndle windows granularity
Rod Widdowson
rdw at steadingsoftware.com
Wed May 29 05:44:25 EDT 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=b14b76e9a6c3f0cd73d11c9baa5c212191149761
The following commit(s) were added to refs/heads/master by this push:
new b14b76e add dither to delays to habndle windows granularity
b14b76e is described below
commit b14b76e9a6c3f0cd73d11c9baa5c212191149761
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed May 29 10:42:13 2019 +0100
add dither to delays to habndle windows granularity
---
.../utilities/java/support/httpclient/IdleConectionSweeperTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/net/shibboleth/utilities/java/support/httpclient/IdleConectionSweeperTest.java b/src/test/java/net/shibboleth/utilities/java/support/httpclient/IdleConectionSweeperTest.java
index b02ead8..14a0c73 100644
--- a/src/test/java/net/shibboleth/utilities/java/support/httpclient/IdleConectionSweeperTest.java
+++ b/src/test/java/net/shibboleth/utilities/java/support/httpclient/IdleConectionSweeperTest.java
@@ -36,7 +36,7 @@ public class IdleConectionSweeperTest {
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
IdleConnectionSweeper sweeper = new IdleConnectionSweeper(connectionManager, Duration.ofMillis(30), SWEEP_INTERVAL);
- Thread.sleep(75);
+ Thread.sleep(200);
Assert.assertTrue(sweeper.scheduledExecutionTime().plus(SWEEP_INTERVAL).isAfter(Instant.now()));
sweeper.destroy();
@@ -51,7 +51,7 @@ public class IdleConectionSweeperTest {
Timer timer = new Timer(true);
sweeper = new IdleConnectionSweeper(connectionManager, Duration.ofMillis(30), SWEEP_INTERVAL, timer);
- Thread.sleep(10);
+ Thread.sleep(150);
Assert.assertTrue(sweeper.scheduledExecutionTime().plus(SWEEP_INTERVAL).isAfter(Instant.now()));
sweeper.destroy();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list