mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-23 22:48:05 +01:00
Restore Redis retries for select operations
This commit is contained in:
@@ -23,6 +23,7 @@ import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -90,7 +91,7 @@ class PushNotificationSchedulerTest {
|
||||
.thenReturn(CompletableFuture.completedFuture(new SendPushNotificationResult(true, Optional.empty(), false, Optional.empty())));
|
||||
|
||||
pushNotificationScheduler = new PushNotificationScheduler(REDIS_CLUSTER_EXTENSION.getRedisCluster(),
|
||||
apnSender, fcmSender, accountsManager, clock, 1, 1);
|
||||
apnSender, fcmSender, accountsManager, clock, 1, 1, mock(ScheduledExecutorService.class));
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@@ -267,7 +268,7 @@ class PushNotificationSchedulerTest {
|
||||
final AccountsManager accountsManager = mock(AccountsManager.class);
|
||||
|
||||
pushNotificationScheduler = new PushNotificationScheduler(redisCluster, apnSender, fcmSender,
|
||||
accountsManager, dedicatedThreadCount, 1);
|
||||
accountsManager, dedicatedThreadCount, 1, mock(ScheduledExecutorService.class));
|
||||
|
||||
pushNotificationScheduler.start();
|
||||
pushNotificationScheduler.stop();
|
||||
|
||||
Reference in New Issue
Block a user