[spring-extensions] branch master updated: File dates screw us agaim. Relax test
Rod Widdowson
rdw at steadingsoftware.com
Mon Aug 7 08:06:07 EDT 2017
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository spring-extensions.
View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=d5c3b1e695b51d877f7fd51c1a8f0a42c809bc58
The following commit(s) were added to refs/heads/master by this push:
new d5c3b1e File dates screw us agaim. Relax test
d5c3b1e is described below
commit d5c3b1e695b51d877f7fd51c1a8f0a42c809bc58
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Aug 7 13:05:59 2017 +0100
File dates screw us agaim. Relax test
---
.../net/shibboleth/ext/spring/resource/RunnableResourceTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/java/net/shibboleth/ext/spring/resource/RunnableResourceTest.java b/src/test/java/net/shibboleth/ext/spring/resource/RunnableResourceTest.java
index 5fb7bdf..3b0a51b 100644
--- a/src/test/java/net/shibboleth/ext/spring/resource/RunnableResourceTest.java
+++ b/src/test/java/net/shibboleth/ext/spring/resource/RunnableResourceTest.java
@@ -132,15 +132,15 @@ public class RunnableResourceTest {
Assert.assertTrue(object.isValid(getValue(resource))); // GetValue increments
Assert.assertTrue(object.isValid((byte) 4));
- Thread.sleep(250);
+ Thread.sleep(20);
final long modified = resource.lastModified(); // lastModified Increments
Assert.assertTrue(object.wasUppdated());
Assert.assertTrue(object.isValid(getValue(resource)));// GetValue increments
Assert.assertTrue(object.isValid((byte) 6));
- Assert.assertTrue(modified > now);
- Thread.sleep(250);
- Assert.assertTrue(modified < System.currentTimeMillis());
+ Assert.assertTrue(modified >= now);
+ Thread.sleep(20);
+ Assert.assertTrue(modified <= System.currentTimeMillis());
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list