Timeout sendNextMessagePage after 5 minutes

This commit is contained in:
Chris Eager
2021-12-08 15:22:38 -08:00
committed by Chris Eager
parent 278b4e810d
commit 3e777df86c
2 changed files with 42 additions and 11 deletions

View File

@@ -66,6 +66,8 @@ class WebSocketConnectionIntegrationTest {
@RegisterExtension
static final RedisClusterExtension REDIS_CLUSTER_EXTENSION = RedisClusterExtension.builder().build();
private static final int SEND_FUTURES_TIMEOUT_MILLIS = 100;
private ExecutorService executorService;
private MessagesDynamoDb messagesDynamoDb;
private MessagesCache messagesCache;
@@ -102,6 +104,7 @@ class WebSocketConnectionIntegrationTest {
new AuthenticatedAccount(() -> new Pair<>(account, device)),
device,
webSocketClient,
SEND_FUTURES_TIMEOUT_MILLIS,
retrySchedulingExecutor);
}