Skip to content

Commit 8ed5fe0

Browse files
committed
fix tests
Signed-off-by: wind57 <[email protected]>
1 parent cc4e7fc commit 8ed5fe0

File tree

1 file changed

+2
-4
lines changed
  • spring-cloud-kubernetes-commons/src/test/java/org/springframework/cloud/kubernetes/commons/config/reload

1 file changed

+2
-4
lines changed

spring-cloud-kubernetes-commons/src/test/java/org/springframework/cloud/kubernetes/commons/config/reload/ConfigReloadUtilTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ void testSecretsPropertySource() {
161161

162162
List<? extends PropertySource> result = ConfigReloadUtil.findPropertySources(PlainPropertySource.class,
163163
environment);
164-
assertThat(result.size()).isEqualTo(1);
165-
assertThat(result.get(0).getProperty("a")).isEqualTo("b");
164+
assertThat(result.size()).isEqualTo(0);
166165
}
167166

168167
@Test
@@ -174,8 +173,7 @@ void testBootstrapSecretsPropertySource() {
174173

175174
List<? extends PropertySource> result = ConfigReloadUtil.findPropertySources(PlainPropertySource.class,
176175
environment);
177-
assertThat(result.size()).isEqualTo(1);
178-
assertThat(result.get(0).getProperty("a")).isEqualTo("b");
176+
assertThat(result.size()).isEqualTo(0);
179177
}
180178

181179
private static final class OneComposite extends CompositePropertySource {

0 commit comments

Comments
 (0)