Made reads quicker to avoid that tests last forever.
This commit is contained in:
parent
2e66e54425
commit
f87cd6d1ba
|
@ -1,7 +1,5 @@
|
||||||
package org.eclipse.jetty.servlets;
|
package org.eclipse.jetty.servlets;
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.*;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
@ -17,6 +15,8 @@ import org.eclipse.jetty.util.log.Logger;
|
||||||
import org.eclipse.jetty.util.log.StdErrLog;
|
import org.eclipse.jetty.util.log.StdErrLog;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
|
import static org.hamcrest.Matchers.not;
|
||||||
|
|
||||||
public class PipelineHelper
|
public class PipelineHelper
|
||||||
{
|
{
|
||||||
private static final Logger LOG = Log.getLogger(PipelineHelper.class);
|
private static final Logger LOG = Log.getLogger(PipelineHelper.class);
|
||||||
|
@ -199,7 +199,8 @@ public class PipelineHelper
|
||||||
int val = inputStream.read();
|
int val = inputStream.read();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Thread.sleep(10);
|
if (left % 10 == 0)
|
||||||
|
Thread.sleep(1);
|
||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue