|
|
@ -95,8 +95,6 @@ class RedisReactiveHealthIndicatorTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void healthWhenClusterStateIsFailShouldBeDown() {
|
|
|
|
void healthWhenClusterStateIsFailShouldBeDown() {
|
|
|
|
Properties clusterProperties = new Properties();
|
|
|
|
|
|
|
|
clusterProperties.setProperty("cluster_state", "fail");
|
|
|
|
|
|
|
|
ReactiveRedisConnectionFactory redisConnectionFactory = createClusterConnectionFactory("fail");
|
|
|
|
ReactiveRedisConnectionFactory redisConnectionFactory = createClusterConnectionFactory("fail");
|
|
|
|
RedisReactiveHealthIndicator healthIndicator = new RedisReactiveHealthIndicator(redisConnectionFactory);
|
|
|
|
RedisReactiveHealthIndicator healthIndicator = new RedisReactiveHealthIndicator(redisConnectionFactory);
|
|
|
|
Mono<Health> health = healthIndicator.health();
|
|
|
|
Mono<Health> health = healthIndicator.health();
|
|
|
|