Skip to content

Commit 919a66e

Browse files
committed
Fix assertion in test after actuator update
1 parent b263d4d commit 919a66e

File tree

1 file changed

+4
-2
lines changed
  • binders/rabbit-binder/spring-cloud-stream-binder-rabbit/src/test/java/org/springframework/cloud/stream/binder/rabbit/integration

1 file changed

+4
-2
lines changed

binders/rabbit-binder/spring-cloud-stream-binder-rabbit/src/test/java/org/springframework/cloud/stream/binder/rabbit/integration/RabbitBinderModuleTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.springframework.boot.WebApplicationType;
4646
import org.springframework.boot.actuate.amqp.RabbitHealthIndicator;
4747
import org.springframework.boot.actuate.health.CompositeHealthContributor;
48+
import org.springframework.boot.actuate.health.Health;
4849
import org.springframework.boot.actuate.health.Status;
4950
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5051
import org.springframework.boot.builder.SpringApplicationBuilder;
@@ -291,8 +292,9 @@ void parentConnectionFactoryInheritedIfOverridden() {
291292
RabbitHealthIndicator indicator = (RabbitHealthIndicator) bindersHealthIndicator.getContributor("rabbit");
292293
assertThat(indicator).isNotNull();
293294
// mock connection factory behaves as if down
294-
assertThat(indicator.health().getStatus())
295-
.isEqualTo(Status.DOWN);
295+
Health health = indicator.health();
296+
assertThat(health.getDetails().get("version"))
297+
.isEqualTo("unknown");
296298
}
297299

298300
@Test

0 commit comments

Comments
 (0)