Skip to content

Commit 8a1c8b5

Browse files
Fix deprecation warning
See gh-30978
1 parent 8e38e28 commit 8a1c8b5

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/metrics/web/reactive/client/MetricsWebClientFilterFunctionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void filterWhenExceptionAndRetryShouldNotAccumulateRecordTime() {
168168
void whenMetricsRecordingFailsThenFilteringSucceeds() {
169169
ClientRequest request = ClientRequest
170170
.create(HttpMethod.GET, URI.create("https://example.com/projects/spring-boot")).build();
171-
given(this.response.rawStatusCode()).willReturn(HttpStatus.OK.value());
171+
given(this.response.statusCode()).willReturn(HttpStatus.OK);
172172
this.tagsProvider.failOnce();
173173
this.filterFunction.filter(request, this.exchange).block(Duration.ofSeconds(5));
174174
}

0 commit comments

Comments
 (0)