Skip to content

Commit

Permalink
[test] Suppress errorprone warning
Browse files Browse the repository at this point in the history
Signed-off-by: Violeta Georgieva <[email protected]>
  • Loading branch information
violetagg committed Jan 22, 2025
1 parent 187c417 commit 8bc0951
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,11 +768,13 @@ void testDeferredUri() {

@ParameterizedTest
@ValueSource(booleans = {true, false})
@SuppressWarnings("CollectionUndefinedEquality")
void testDeferredCookie(boolean provideEmptyPublisher) {
disposableServer =
createServer()
.host("localhost")
.route(r -> r.get("/", (req, res) -> {
// Suppressed "CollectionUndefinedEquality", the CharSequence is String
Set<Cookie> cookies = req.cookies().get("testDeferredCookie");
return cookies != null ?
res.sendString(Mono.just(cookies.iterator().next().value())) :
Expand Down

0 comments on commit 8bc0951

Please sign in to comment.