Skip to content

Commit 06989d8

Browse files
committed
Polish "Fix StringSequence.equals() for different lengths"
Closes gh-15438
1 parent e578d30 commit 06989d8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/http/reactive/HttpTraceWebFilterTests.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public void filterCapturesSessionIdWhenSessionIsUsed()
7171
MockServerWebExchange
7272
.from(MockServerHttpRequest.get("https://api.example.com")),
7373
(exchange) -> {
74-
exchange.getSession().block(Duration.ofSeconds(30))
75-
.getAttributes().put("a", "alpha");
74+
exchange.getSession().block(Duration.ofSeconds(30)).getAttributes()
75+
.put("a", "alpha");
7676
return Mono.empty();
7777
}).block(Duration.ofSeconds(30));
7878
assertThat(this.repository.findAll()).hasSize(1);
@@ -109,8 +109,8 @@ public Mono<Principal> getPrincipal() {
109109
}
110110

111111
}, (exchange) -> {
112-
exchange.getSession().block(Duration.ofSeconds(30)).getAttributes()
113-
.put("a", "alpha");
112+
exchange.getSession().block(Duration.ofSeconds(30)).getAttributes().put("a",
113+
"alpha");
114114
return Mono.empty();
115115
}).block(Duration.ofSeconds(30));
116116
assertThat(this.repository.findAll()).hasSize(1);
@@ -124,10 +124,11 @@ public Mono<Principal> getPrincipal() {
124124
public void statusIsAssumedToBe500WhenChainFails()
125125
throws ServletException, IOException {
126126
try {
127-
this.filter.filter(
128-
MockServerWebExchange
127+
this.filter
128+
.filter(MockServerWebExchange
129129
.from(MockServerHttpRequest.get("https://api.example.com")),
130-
(exchange) -> Mono.error(new RuntimeException())).block(Duration.ofSeconds(30));
130+
(exchange) -> Mono.error(new RuntimeException()))
131+
.block(Duration.ofSeconds(30));
131132
fail();
132133
}
133134
catch (Exception ex) {

0 commit comments

Comments
 (0)