|
|
@ -168,7 +168,7 @@ class MetricsWebClientFilterFunctionTests {
|
|
|
|
void whenMetricsRecordingFailsThenFilteringSucceeds() {
|
|
|
|
void whenMetricsRecordingFailsThenFilteringSucceeds() {
|
|
|
|
ClientRequest request = ClientRequest
|
|
|
|
ClientRequest request = ClientRequest
|
|
|
|
.create(HttpMethod.GET, URI.create("https://example.com/projects/spring-boot")).build();
|
|
|
|
.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.tagsProvider.failOnce();
|
|
|
|
this.filterFunction.filter(request, this.exchange).block(Duration.ofSeconds(5));
|
|
|
|
this.filterFunction.filter(request, this.exchange).block(Duration.ofSeconds(5));
|
|
|
|
}
|
|
|
|
}
|
|
|
|