Skip to content

Commit ff0725f

Browse files
committed
Fix HazelcastHealthIndicatorTests
See gh-24337
1 parent 55ae5be commit ff0725f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/hazelcast/HazelcastHealthIndicatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void hazelcastUp() {
5858

5959
@Test
6060
void hazelcastDown() {
61-
given(this.hazelcast.executeTransaction(any())).willReturn(new HazelcastException());
61+
given(this.hazelcast.executeTransaction(any())).willThrow(new HazelcastException());
6262
Health health = new HazelcastHealthIndicator(this.hazelcast).health();
6363
assertThat(health.getStatus()).isEqualTo(Status.DOWN);
6464
}

0 commit comments

Comments
 (0)