Measure captcha challenge success rates.

This commit is contained in:
Jon Chambers authored and Chris Eager committed 2021-05-12 12:20:53 -05:00
1 parent 760462f8fb
commit d45154f2aa
2 files changed
+15

No files matched your search

@@ -87,6 +87,8 @@ class RateLimitChallengeManagerTest {
@ValueSource(booleans = {true, false})
void answerRecaptchaChallenge(final boolean successfulChallenge) throws RateLimitExceededException {
final Account account = mock(Account.class);
when(account.getNumber()).thenReturn("+18005551234");
when(recaptchaClient.verify(any(), any())).thenReturn(successfulChallenge);
when(rateLimiters.getRecaptchaChallengeAttemptLimiter()).thenReturn(mock(RateLimiter.class));