Skip to content

Commit c211c97

Browse files
committed
Polishing
Closes gh-27429
2 parents f34a265 + 4a533e1 commit c211c97

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/redis/RedisReactiveHealthIndicatorTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ void healthWhenClusterStateIsOkShouldBeUp() {
9595

9696
@Test
9797
void healthWhenClusterStateIsFailShouldBeDown() {
98-
Properties clusterProperties = new Properties();
99-
clusterProperties.setProperty("cluster_state", "fail");
10098
ReactiveRedisConnectionFactory redisConnectionFactory = createClusterConnectionFactory("fail");
10199
RedisReactiveHealthIndicator healthIndicator = new RedisReactiveHealthIndicator(redisConnectionFactory);
102100
Mono<Health> health = healthIndicator.health();

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -84,8 +84,6 @@ void loadsPropertiesFromCustomHomeDirectorySetUsingEnvironmentVariable() throws
8484
Properties properties = new Properties();
8585
properties.put("uvw", "xyz");
8686
writeFile(properties, this.customHome, ".config/spring-boot/spring-boot-devtools.properties");
87-
Properties systemProperties = new Properties();
88-
systemProperties.setProperty("spring.devtools.home", this.customHome.getAbsolutePath());
8987
ConfigurableEnvironment environment = getPostProcessedEnvironment(
9088
Collections.singletonMap("SPRING_DEVTOOLS_HOME", this.customHome.getAbsolutePath()));
9189
assertThat(environment.getProperty("uvw")).isEqualTo("xyz");

0 commit comments

Comments
 (0)