Skip to content

Commit

Permalink
Fix flaky testSetAll (eclipse-vertx#4998)
Browse files Browse the repository at this point in the history
  • Loading branch information
219sansim authored Dec 4, 2023
1 parent c437376 commit bb36217
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.HashMap;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.Set;

import static io.vertx.core.http.HttpUtilsTest.HEADER_NAME_ALLOWED_CHARS;
import static org.junit.Assert.*;
Expand Down Expand Up @@ -129,7 +130,8 @@ public void testSetAll() {
assertNotNull(result);
assertFalse(result.isEmpty());
assertEquals(2, result.size());
assertEquals("=\naaa=bbb\n", result.toString());
String actual = result.toString();
assertTrue(Set.of("=\naaa=bbb\n", "aaa=bbb\n=\n").contains(actual));
}

@Test
Expand Down

0 comments on commit bb36217

Please sign in to comment.