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).

This commit is contained in:
Luke Taylor 2007-09-04 01:06:58 +00:00
parent 6289503643
commit 3de8745494
1 changed files with 4 additions and 2 deletions

View File

@ -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));
} }
} }
*/
} }