Skip to content

Commit 990eac5

Browse files
committed
fix test
Signed-off-by: wind57 <[email protected]>
1 parent 0f96c04 commit 990eac5

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,10 @@ public Object getProperty(String name) {
146146
List<? extends PropertySource> result = ConfigReloadUtil.findPropertySources(PlainPropertySource.class,
147147
environment);
148148

149-
Assertions.assertThat(result.size()).isEqualTo(4);
149+
Assertions.assertThat(result.size()).isEqualTo(3);
150150
Assertions.assertThat(result.get(0).getProperty("a")).isEqualTo("b");
151151
Assertions.assertThat(result.get(1).getProperty("")).isEqualTo("plain");
152-
Assertions.assertThat(result.get(2).getProperty("")).isEqualTo("from-bootstrap");
153-
Assertions.assertThat(result.get(3).getProperty("")).isEqualTo("from-inner-two-composite");
152+
Assertions.assertThat(result.get(2).getProperty("")).isEqualTo("from-inner-two-composite");
154153

155154
}
156155

0 commit comments

Comments
 (0)