mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 09:46:53 +00:00
Use non-legacy rate limit error in BackupAuthManager
This commit is contained in:
1 parent
2408590430
commit
0ef3e00ba7
2 files changed
+7
-4
No files matched your search
+2
-1
@@ -406,9 +406,10 @@ public class BackupAuthManagerTest {
|
||||
when(accountsManager.updateAsync(any(), any())).thenReturn(CompletableFuture.completedFuture(account));
|
||||
|
||||
// Should be rate limited
|
||||
CompletableFutureTestUtil.assertFailsWithCause(
|
||||
final RateLimitExceededException ex = CompletableFutureTestUtil.assertFailsWithCause(
|
||||
RateLimitExceededException.class,
|
||||
authManager.commitBackupId(account, credentialRequest));
|
||||
assertThat(ex.isLegacy()).isFalse();
|
||||
|
||||
// If we don't change the request, shouldn't be rate limited
|
||||
when(account.getBackupCredentialRequest()).thenReturn(credentialRequest.serialize());
|
||||
|
||||
Reference in new issue
Block a user