geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r158456 - geronimo/trunk/modules/security/src/test/org/apache/geronimo/security/jaas/TimeoutTest.java
Date Mon, 21 Mar 2005 15:05:57 GMT
Author: adc
Date: Mon Mar 21 07:05:56 2005
New Revision: 158456

URL: http://svn.apache.org/viewcvs?view=rev&rev=158456
Log:
Security Timeout Test failures
http://issues.apache.org/jira/browse/GERONIMO-553

Modified:
    geronimo/trunk/modules/security/src/test/org/apache/geronimo/security/jaas/TimeoutTest.java

Modified: geronimo/trunk/modules/security/src/test/org/apache/geronimo/security/jaas/TimeoutTest.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/security/src/test/org/apache/geronimo/security/jaas/TimeoutTest.java?view=diff&r1=158455&r2=158456
==============================================================================
--- geronimo/trunk/modules/security/src/test/org/apache/geronimo/security/jaas/TimeoutTest.java
(original)
+++ geronimo/trunk/modules/security/src/test/org/apache/geronimo/security/jaas/TimeoutTest.java
Mon Mar 21 07:05:56 2005
@@ -62,7 +62,7 @@
         gbean = new GBeanData(loginService, JaasLoginService.getGBeanInfo());
         gbean.setReferencePatterns("Realms", Collections.singleton(new ObjectName("geronimo.security:type=SecurityRealm,*")));
         gbean.setAttribute("expiredLoginScanIntervalMillis", new Integer(50));
-        gbean.setAttribute("maxLoginDurationMillis", new Integer(1000));
+        gbean.setAttribute("maxLoginDurationMillis", new Integer(5000));
         gbean.setAttribute("algorithm", "HmacSHA1");
         gbean.setAttribute("password", "secret");
         kernel.loadGBean(gbean, JaasLoginService.class.getClassLoader());
@@ -186,11 +186,11 @@
 
         assertTrue("id of server subject should be non-null", ContextManager.getSubjectId(subject)
!= null);
 
-        Thread.sleep(300); // wait for timeout to kick in
+        Thread.sleep(3000); // wait for timeout to kick in
 
         assertTrue("id of server subject should be non-null", ContextManager.getSubjectId(subject)
!= null);
 
-        Thread.sleep(1700); // wait for timeout to kick in
+        Thread.sleep(7000); // wait for timeout to kick in
 
         assertTrue("id of server subject should be null", ContextManager.getSubjectId(subject)
== null);
     }



Mime
View raw message