jetty-9 - Set default timeout for expect() to be 5 s.

This commit is contained in:
Simone Bordet 2012-09-17 21:39:10 +02:00
parent 6702a50e48
commit 92c95584fa
1 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,6 @@
package org.eclipse.jetty.websocket.server.ab;
import static org.hamcrest.Matchers.*;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Collections;
@ -40,6 +38,8 @@ import org.eclipse.jetty.websocket.server.blockhead.BlockheadClient;
import org.eclipse.jetty.websocket.server.helper.IncomingFramesCapture;
import org.junit.Assert;
import static org.hamcrest.Matchers.is;
/**
* Fuzzing utility for the AB tests.
*/
@ -119,7 +119,7 @@ public class Fuzzer
public void expect(List<WebSocketFrame> expect) throws IOException, TimeoutException
{
expect(expect,TimeUnit.MILLISECONDS,500);
expect(expect,TimeUnit.SECONDS,5);
}
public void expect(List<WebSocketFrame> expect, TimeUnit unit, int duration) throws IOException, TimeoutException