[java-support] branch maint-7 updated: add dither to delays to habndle windows granularity
Rod Widdowson
rdw at steadingsoftware.com
Wed May 29 05:44:47 EDT 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch maint-7
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=bcc39fa9b312e654db61ec16736ed17f0383e266
The following commit(s) were added to refs/heads/maint-7 by this push:
new bcc39fa add dither to delays to habndle windows granularity
bcc39fa is described below
commit bcc39fa9b312e654db61ec16736ed17f0383e266
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed May 29 10:44:36 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 037a2cc..908c0c8 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
@@ -34,7 +34,7 @@ public class IdleConectionSweeperTest {
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
IdleConnectionSweeper sweeper = new IdleConnectionSweeper(connectionManager, 30, SWEEP_INTERVAL);
- Thread.sleep(75);
+ Thread.sleep(200);
Assert.assertTrue(sweeper.scheduledExecutionTime() + SWEEP_INTERVAL > System.currentTimeMillis());
sweeper.destroy();
@@ -49,7 +49,7 @@ public class IdleConectionSweeperTest {
Timer timer = new Timer(true);
sweeper = new IdleConnectionSweeper(connectionManager, 30, SWEEP_INTERVAL, timer);
- Thread.sleep(10);
+ Thread.sleep(150);
Assert.assertTrue(sweeper.scheduledExecutionTime() + SWEEP_INTERVAL > System.currentTimeMillis());
sweeper.destroy();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list