Skip to content

Commit afcb5d5

Browse files
committed
Polish "Fix uri tag for empty path"
See gh-21392
1 parent 3f37282 commit afcb5d5

File tree

1 file changed

+1
-2
lines changed
  • spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/server

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTagsTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ void uriTagValueIsBestMatchingPatternWhenAvailable() {
6363

6464
@Test
6565
void uriTagValueIsRootWhenBestMatchingPatternIsEmpty() {
66-
this.exchange.getAttributes().put(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE,
67-
this.parser.parse(""));
66+
this.exchange.getAttributes().put(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE, this.parser.parse(""));
6867
this.exchange.getResponse().setStatusCode(HttpStatus.MOVED_PERMANENTLY);
6968
Tag tag = WebFluxTags.uri(this.exchange);
7069
assertThat(tag.getValue()).isEqualTo("root");

0 commit comments

Comments
 (0)