Issue #2599 Fix AsyncServletIOTest

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2018-05-30 18:15:04 +02:00
parent 1509d1c9aa
commit 0f23af315c
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));