See gh-25980
This commit is contained in:
izeye
2021-04-09 21:21:32 +09:00
committed by Stephane Nicoll
parent 5e03612a53
commit 4987880afa
5 changed files with 7 additions and 7 deletions

View File

@@ -209,13 +209,13 @@ class WebFluxTagsTests {
}
@Test
void outcomeTagIsClientErrorWhenExceptionIsDisconnectedClient() {
void outcomeTagIsUnknownWhenExceptionIsDisconnectedClient() {
Tag tag = WebFluxTags.outcome(this.exchange, new EOFException("broken pipe"));
assertThat(tag.getValue()).isEqualTo("UNKNOWN");
}
@Test
void outcomeTagIsClientErrorWhenExceptionIsCancelledExchange() {
void outcomeTagIsUnknownWhenExceptionIsCancelledExchange() {
Tag tag = WebFluxTags.outcome(this.exchange, new CancelledServerWebExchangeException());
assertThat(tag.getValue()).isEqualTo("UNKNOWN");
}