jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1404602 - in /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token: TokenInfoTest.java TokenProviderImplTest.java
Date Thu, 01 Nov 2012 14:06:41 GMT
Author: mreutegg
Date: Thu Nov  1 14:06:41 2012
New Revision: 1404602

URL: http://svn.apache.org/viewvc?rev=1404602&view=rev
Log:
OAK-416: TokenInfoTest and TokenProviderImplTest occasionally fail 

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenInfoTest.java
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImplTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenInfoTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenInfoTest.java?rev=1404602&r1=1404601&r2=1404602&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenInfoTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenInfoTest.java
Thu Nov  1 14:06:41 2012
@@ -63,7 +63,7 @@ public class TokenInfoTest extends Abstr
         loginTime = new Date().getTime() + 3600000;
         assertFalse(info.isExpired(loginTime));
 
-        long expiredTime = new Date().getTime() + 7200000;
+        long expiredTime = new Date().getTime() + 7200001;
         assertTrue(info.isExpired(expiredTime));
     }
 

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImplTest.java?rev=1404602&r1=1404601&r2=1404602&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImplTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImplTest.java
Thu Nov  1 14:06:41 2012
@@ -218,7 +218,7 @@ public class TokenProviderImplTest exten
     public void testResetTokenExpirationExpiredToken() throws Exception {
         TokenInfo info = tokenProvider.createToken(userId, Collections.<String, Object>emptyMap());
 
-        long expiredTime = new Date().getTime() + 7200000;
+        long expiredTime = new Date().getTime() + 7200001;
         assertTrue(info.isExpired(expiredTime));
         assertFalse(tokenProvider.resetTokenExpiration(info, expiredTime));
     }



Mime
View raw message