浏览代码

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 年之前
父节点
当前提交
3de8745494

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

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