Fix deprecation warning

See gh-30978
pull/31104/head
Scott Frederick 3 years ago
parent 8e38e28e94
commit 8a1c8b5c2c

@ -168,7 +168,7 @@ class MetricsWebClientFilterFunctionTests {
void whenMetricsRecordingFailsThenFilteringSucceeds() {
ClientRequest request = ClientRequest
.create(HttpMethod.GET, URI.create("https://example.com/projects/spring-boot")).build();
given(this.response.rawStatusCode()).willReturn(HttpStatus.OK.value());
given(this.response.statusCode()).willReturn(HttpStatus.OK);
this.tagsProvider.failOnce();
this.filterFunction.filter(request, this.exchange).block(Duration.ofSeconds(5));
}

Loading…
Cancel
Save