shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lhazlew...@apache.org
Subject svn commit: r808543 - /incubator/shiro/trunk/core/src/test/java/org/apache/shiro/session/mgt/DefaultSessionManagerTest.java
Date Thu, 27 Aug 2009 17:15:49 GMT
Author: lhazlewood
Date: Thu Aug 27 17:15:48 2009
New Revision: 808543

URL: http://svn.apache.org/viewvc?rev=808543&view=rev
Log:
SHIRO-90 - changed timeouts to account for JVM speed differences.  Test should be refactored
to use a mock DAO that returns a Session instance that simulates expiration instead of depending
on sleep logic

Modified:
    incubator/shiro/trunk/core/src/test/java/org/apache/shiro/session/mgt/DefaultSessionManagerTest.java

Modified: incubator/shiro/trunk/core/src/test/java/org/apache/shiro/session/mgt/DefaultSessionManagerTest.java
URL: http://svn.apache.org/viewvc/incubator/shiro/trunk/core/src/test/java/org/apache/shiro/session/mgt/DefaultSessionManagerTest.java?rev=808543&r1=808542&r2=808543&view=diff
==============================================================================
--- incubator/shiro/trunk/core/src/test/java/org/apache/shiro/session/mgt/DefaultSessionManagerTest.java
(original)
+++ incubator/shiro/trunk/core/src/test/java/org/apache/shiro/session/mgt/DefaultSessionManagerTest.java
Thu Aug 27 17:15:48 2009
@@ -61,10 +61,10 @@
 
     @Test
     public void testGlobalTimeout() {
-        sm.setGlobalSessionTimeout(125);
+        sm.setGlobalSessionTimeout(200);
         Serializable sessionId = sm.start((InetAddress) null);
         assertTrue(sm.isValid(sessionId));
-        sleep(225);
+        sleep(300);
         assertFalse(sm.isValid(sessionId));
     }
 



Mime
View raw message