[java-support] branch master updated: Add dither to delay

Rod Widdowson rdw at steadingsoftware.com
Mon May 20 10:44:08 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=09d70707643980ef47c951e3cdccdfee7e812e05

The following commit(s) were added to refs/heads/master by this push:
       new  09d7070   Add dither to delay
09d7070 is described below

commit 09d70707643980ef47c951e3cdccdfee7e812e05
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon May 20 15:36:38 2019 +0100

    Add dither to delay
    
    Window clocks especially for >= Java11 have large graularity
---
 .../net/shibboleth/utilities/java/support/security/DataSealerTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/net/shibboleth/utilities/java/support/security/DataSealerTest.java b/src/test/java/net/shibboleth/utilities/java/support/security/DataSealerTest.java
index d84f3c4..9897c44 100644
--- a/src/test/java/net/shibboleth/utilities/java/support/security/DataSealerTest.java
+++ b/src/test/java/net/shibboleth/utilities/java/support/security/DataSealerTest.java
@@ -130,7 +130,7 @@ public class DataSealerTest {
         final DataSealer sealer = createDataSealer();
 
         String encoded = sealer.wrap(THE_DATA, Instant.now().plus(THE_DELAY));
-        Thread.sleep(THE_DELAY.toMillis() + 1);
+        Thread.sleep(THE_DELAY.toMillis() + 150);
         try {
             sealer.unwrap(encoded);
             Assert.fail("Should have timed out");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list