[java-opensaml] branch maint-3.4 updated: Extend lifetimes in tests.

Rod Widdowson rdw at steadingsoftware.com
Fri Apr 12 05:28:11 EDT 2019


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch maint-3.4
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=35db0a12e5edd7a8ec45e6b3b549fe7fe0c24bb7

The following commit(s) were added to refs/heads/maint-3.4 by this push:
       new  35db0a1   Extend lifetimes in tests.
35db0a1 is described below

commit 35db0a12e5edd7a8ec45e6b3b549fe7fe0c24bb7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Mar 27 09:25:35 2019 -0400

    Extend lifetimes in tests.
---
 .../src/test/java/org/opensaml/storage/StorageServiceTest.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/opensaml-storage-api/src/test/java/org/opensaml/storage/StorageServiceTest.java b/opensaml-storage-api/src/test/java/org/opensaml/storage/StorageServiceTest.java
index f057e14..fee097a 100644
--- a/opensaml-storage-api/src/test/java/org/opensaml/storage/StorageServiceTest.java
+++ b/opensaml-storage-api/src/test/java/org/opensaml/storage/StorageServiceTest.java
@@ -172,14 +172,14 @@ public abstract class StorageServiceTest {
         Assert.assertEquals(o1.getValue(), o2.getValue());
         
         o2.setValue("foo");
-        o2.setExpiration(System.currentTimeMillis() + 5000);
+        o2.setExpiration(System.currentTimeMillis() + 10000);
         shared.update(o2);
         
         shared.read(o1);
         Assert.assertEquals(o1.getValue(), "foo");
         Assert.assertEquals(o1.getExpiration(), o2.getExpiration());
         
-        Thread.sleep(5000);
+        Thread.sleep(10000);
         
         Assert.assertNull(shared.read(o2));
     }
@@ -199,7 +199,7 @@ public abstract class StorageServiceTest {
             context = Long.toString(random.nextLong());
             key = Long.toString(random.nextLong());
             value = Long.toString(random.nextLong());
-            expiration = System.currentTimeMillis() + 5000;
+            expiration = System.currentTimeMillis() + 60000;
         }
         
         public String getContext() {

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


More information about the commits mailing list