Merge pull request #2606 from eclipse/jetty-9.4.x-2599-asyncservletiotest

Issue #2599 Fix AsyncServletIOTest
This commit is contained in:
Greg Wilkins 2018-05-31 08:17:03 +02:00 committed by GitHub
commit 6cec65b21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ package org.eclipse.jetty.servlet;
import static java.nio.charset.StandardCharsets.ISO_8859_1;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertEquals;
@ -695,7 +696,8 @@ public class AsyncServletIOTest
LOG.debug("last: "+last);
// last non empty line should not contain end chunk
assertThat(last,not(containsString("0")));
assertThat(last, notNullValue());
assertThat(last.trim(),not(startsWith("0")));
}
assertTrue(_servlet4.completed.await(5, TimeUnit.SECONDS));