mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Fix HazelcastHealthIndicatorTests
See gh-24337
This commit is contained in:
parent
55ae5be84b
commit
ff0725f6bf
@ -58,7 +58,7 @@ class HazelcastHealthIndicatorTests {
|
||||
|
||||
@Test
|
||||
void hazelcastDown() {
|
||||
given(this.hazelcast.executeTransaction(any())).willReturn(new HazelcastException());
|
||||
given(this.hazelcast.executeTransaction(any())).willThrow(new HazelcastException());
|
||||
Health health = new HazelcastHealthIndicator(this.hazelcast).health();
|
||||
assertThat(health.getStatus()).isEqualTo(Status.DOWN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user