From 9505e7b1a1099e70e257d9ae06a3771cf054efd3 Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Wed, 17 Jun 2026 12:28:06 -0500 Subject: [PATCH] Fix incorrect mockito matcher in BackupManagerTest --- .../textsecuregcm/backup/BackupManagerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/backup/BackupManagerTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/backup/BackupManagerTest.java index f4d3ef033..c006f15fe 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/backup/BackupManagerTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/backup/BackupManagerTest.java @@ -470,9 +470,9 @@ public class BackupManagerTest { final int slowIndex = backupConfiguration.usageCheckpointCount() - 1; final CompletableFuture slow = new CompletableFuture<>(); - when(remoteStorageManager.copy(eq(3), anyString(), eq(100), any(), anyString())) + when(remoteStorageManager.copy(eq(3), anyString(), eq(100L), any(), anyString())) .thenReturn(CompletableFuture.completedFuture(null)); - when(remoteStorageManager.copy(eq(3), eq(sourceKeys.get(slowIndex)), eq(100), any(), anyString())) + when(remoteStorageManager.copy(eq(3), eq(sourceKeys.get(slowIndex)), eq(100L), any(), anyString())) .thenReturn(slow); final ArrayBlockingQueue copyResults = new ArrayBlockingQueue<>(100); final CompletableFuture future = backupManager