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

See gh-17991
This commit is contained in:
Andy Wilkinson 2019-08-29 13:44:35 +01:00
parent 1acff410a2
commit 0217de4349
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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");