Skip to content

Commit

Permalink
Increase RedisEntityListenerTest.onSlowPublish timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com>
  • Loading branch information
steven-sheehy committed Jun 21, 2021
1 parent e84cafc commit 3ad4c55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ void onSlowPublish() {

//then
//Thread is blocked because queue is full, and publisher is blocked on first message.
verify(redisOperations, timeout(TIMEOUT_MILLIS).times(1))
verify(redisOperations, timeout(TIMEOUT_MILLIS * 5).times(1))
.executePipelined(any(SessionCallback.class));
assertThat(saveCount.get()).isEqualTo(redisProperties.getQueueCapacity() + 1);

latch.countDown();
//All messages should be queued and published
verify(redisOperations, timeout(TIMEOUT_MILLIS).times(redisProperties.getQueueCapacity() + 2))
verify(redisOperations, timeout(TIMEOUT_MILLIS * 5).times(redisProperties.getQueueCapacity() + 2))
.executePipelined(any(SessionCallback.class));
assertThat(saveCount.get()).isEqualTo(redisProperties.getQueueCapacity() + 2);
}
Expand Down

0 comments on commit 3ad4c55

Please sign in to comment.