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 { ...@@ -95,7 +95,7 @@ class RestTemplateExchangeTagsTests {
} }
@Test @Test
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() throws IOException { void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() throws IOException {
ClientHttpResponse response = mock(ClientHttpResponse.class); ClientHttpResponse response = mock(ClientHttpResponse.class);
given(response.getRawStatusCode()).willReturn(490); given(response.getRawStatusCode()).willReturn(490);
Tag tag = RestTemplateExchangeTags.outcome(response); Tag tag = RestTemplateExchangeTags.outcome(response);
......
...@@ -148,7 +148,7 @@ class WebClientExchangeTagsTests { ...@@ -148,7 +148,7 @@ class WebClientExchangeTagsTests {
} }
@Test @Test
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() { void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() {
given(this.response.rawStatusCode()).willReturn(490); given(this.response.rawStatusCode()).willReturn(490);
Tag tag = WebClientExchangeTags.outcome(this.response); Tag tag = WebClientExchangeTags.outcome(this.response);
assertThat(tag.getValue()).isEqualTo("CLIENT_ERROR"); 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