File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tests/src/test/java/io/jooby/i3765 Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55 */
66package 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
1110import java .io .IOException ;
1211import java .nio .file .Files ;
1312import java .nio .file .Path ;
1413import java .nio .file .Paths ;
14+ import java .util .Set ;
1515import java .util .stream .Stream ;
1616
1717import 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 );
You can’t perform that action at this time.
0 commit comments