Commit 0217de43 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish "Improve handling of non-standard status codes in RestTemplate metrics"

See gh-17991
parent 1acff410
......@@ -95,7 +95,7 @@ class RestTemplateExchangeTagsTests {
}
@Test
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() throws IOException {
void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() throws IOException {
ClientHttpResponse response = mock(ClientHttpResponse.class);
given(response.getRawStatusCode()).willReturn(490);
Tag tag = RestTemplateExchangeTags.outcome(response);
......
......@@ -148,7 +148,7 @@ class WebClientExchangeTagsTests {
}
@Test
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() {
void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() {
given(this.response.rawStatusCode()).willReturn(490);
Tag tag = WebClientExchangeTags.outcome(this.response);
assertThat(tag.getValue()).isEqualTo("CLIENT_ERROR");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment