Browse Source

Commented out (another) failing captcha test whose behaviour varies with speed of the build server (makes assumptions about the interval within which certain lines of code are executed).

Luke Taylor 18 years ago
parent
commit
3de8745494

+ 4 - 2
core/src/test/java/org/acegisecurity/captcha/AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessorTests.java

@@ -43,7 +43,7 @@ public class AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessorTe
         context.setHuman();
         context.setHuman();
 
 
         long now = System.currentTimeMillis();
         long now = System.currentTimeMillis();
-
+/*
         while ((System.currentTimeMillis() - now) <= 100) {
         while ((System.currentTimeMillis() - now) <= 100) {
             assertTrue(alwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor
             assertTrue(alwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor
                 .isContextValidConcerningHumanity(context));
                 .isContextValidConcerningHumanity(context));
@@ -64,8 +64,9 @@ public class AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessorTe
         assertFalse(alwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor.isContextValidConcerningHumanity(
         assertFalse(alwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor.isContextValidConcerningHumanity(
                 context));
                 context));
         alwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor.setThresold(0);
         alwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor.setThresold(0);
+        */
     }
     }
-
+/*
     public void testIsContextValidConcerningHumanity()
     public void testIsContextValidConcerningHumanity()
         throws Exception {
         throws Exception {
         CaptchaSecurityContext context = new CaptchaSecurityContextImpl();
         CaptchaSecurityContext context = new CaptchaSecurityContextImpl();
@@ -112,4 +113,5 @@ public class AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessorTe
                 .isContextValidConcerningHumanity(context));
                 .isContextValidConcerningHumanity(context));
         }
         }
     }
     }
+    */
 }
 }