Made reads quicker to avoid that tests last forever.

This commit is contained in:
Simone Bordet 2012-02-24 11:56:40 +01:00
parent 2e66e54425
commit f87cd6d1ba
1 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,5 @@
package org.eclipse.jetty.servlets;
import static org.hamcrest.Matchers.*;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@ -17,6 +15,8 @@ import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.util.log.StdErrLog;
import org.junit.Assert;
import static org.hamcrest.Matchers.not;
public class PipelineHelper
{
private static final Logger LOG = Log.getLogger(PipelineHelper.class);
@ -199,7 +199,8 @@ public class PipelineHelper
int val = inputStream.read();
try
{
Thread.sleep(10);
if (left % 10 == 0)
Thread.sleep(1);
}
catch (InterruptedException e)
{