Skip to content

Commit fe6fc88

Browse files
committed
build: fix failing windows test
- ref #3765
1 parent 0878fdb commit fe6fc88

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/src/test/java/io/jooby/i3765/Issue3765.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
*/
66
package io.jooby.i3765;
77

8-
import static org.junit.jupiter.api.Assertions.assertEquals;
9-
import static org.junit.jupiter.api.Assertions.assertFalse;
8+
import static org.junit.jupiter.api.Assertions.*;
109

1110
import java.io.IOException;
1211
import java.nio.file.Files;
1312
import java.nio.file.Path;
1413
import java.nio.file.Paths;
14+
import java.util.Set;
1515
import java.util.stream.Stream;
1616

1717
import org.junit.jupiter.api.AfterAll;
@@ -39,7 +39,8 @@ public void shouldDestroyFileAfterSend(ServerTestRunner runner) throws IOExcepti
3939
"/3765",
4040
rsp -> {
4141
assertEquals(200, rsp.code());
42-
assertEquals("56832", rsp.header("Content-Length"));
42+
// Unix vs Windows
43+
assertTrue(Set.of("56832", "56928").contains(rsp.header("Content-Length")));
4344
});
4445
while (Files.exists(path)) {
4546
Thread.sleep(10);

0 commit comments

Comments
 (0)