mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:46:53 +00:00
Use uint64 for backups.proto object length
This commit is contained in:
1 parent
024fa9ce5f
commit
06519ce9d1
6 files changed
+15
-26
No files matched your search
+3
-3
@@ -525,11 +525,11 @@ public class BackupManagerTest {
|
||||
|
||||
when(tusCredentialGenerator.generateUpload(any(), anyLong()))
|
||||
.thenReturn(new BackupUploadDescriptor(3, "", Collections.emptyMap(), ""));
|
||||
when(remoteStorageManager.copy(eq(3), eq("success"), eq(100), any(), any()))
|
||||
when(remoteStorageManager.copy(eq(3), eq("success"), eq(100L), any(), any()))
|
||||
.thenReturn(CompletableFuture.completedFuture(null));
|
||||
when(remoteStorageManager.copy(eq(3), eq("missing"), eq(200), any(), any()))
|
||||
when(remoteStorageManager.copy(eq(3), eq("missing"), eq(200L), any(), any()))
|
||||
.thenReturn(CompletableFuture.failedFuture(new SourceObjectNotFoundException()));
|
||||
when(remoteStorageManager.copy(eq(3), eq("badlength"), eq(300), any(), any()))
|
||||
when(remoteStorageManager.copy(eq(3), eq("badlength"), eq(300L), any(), any()))
|
||||
.thenReturn(CompletableFuture.failedFuture(new InvalidLengthException("")));
|
||||
|
||||
final List<CopyResult> results = backupManager
|
||||
|
||||
Reference in new issue
Block a user