Use uint64 for backups.proto object length

This commit is contained in:
Ravi Khadiwala authored and Jon Chambers committed 2026-06-17 08:45:43 -04:00
1 parent 024fa9ce5f
commit 06519ce9d1
6 files changed
+15 -26

No files matched your search

@@ -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