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

Rod Widdowson rdw at steadingsoftware.com
Mon May 20 10:43:53 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=68150988297e3373ddd644b8bc3c8c70ebc378de

The following commit(s) were added to refs/heads/maint-7 by this push:
       new  6815098   Add dither to delay
6815098 is described below

commit 68150988297e3373ddd644b8bc3c8c70ebc378de
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 1ef5e89..fffdcbe 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
@@ -123,7 +123,7 @@ public class DataSealerTest {
         final DataSealer sealer = createDataSealer();
 
         String encoded = sealer.wrap(THE_DATA, System.currentTimeMillis() + THE_DELAY);
-        Thread.sleep(THE_DELAY + 1);
+        Thread.sleep(THE_DELAY + 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