Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
This commit is contained in:
commit
876f20006d
|
@ -18,10 +18,6 @@
|
|||
|
||||
package org.eclipse.jetty.websocket.server;
|
||||
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -47,6 +43,10 @@ import org.junit.runner.RunWith;
|
|||
import org.junit.runners.Parameterized;
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
@RunWith(Parameterized.class)
|
||||
public class PerMessageDeflateExtensionTest
|
||||
{
|
||||
|
@ -145,7 +145,7 @@ public class PerMessageDeflateExtensionTest
|
|||
{
|
||||
client.start();
|
||||
// Make sure the read times out if there are problems with the implementation
|
||||
client.setMaxIdleTimeout(TimeUnit.SECONDS.toMillis(1));
|
||||
client.setMaxIdleTimeout(TimeUnit.SECONDS.toMillis(15));
|
||||
|
||||
CaptureSocket clientSocket = new CaptureSocket();
|
||||
ClientUpgradeRequest request = new ClientUpgradeRequest();
|
||||
|
@ -155,7 +155,7 @@ public class PerMessageDeflateExtensionTest
|
|||
Future<Session> fut = client.connect(clientSocket,server.getServerUri(),request);
|
||||
|
||||
// Wait for connect
|
||||
Session session = fut.get(3,TimeUnit.SECONDS);
|
||||
Session session = fut.get(5,TimeUnit.SECONDS);
|
||||
|
||||
assertThat("Response.extensions",getNegotiatedExtensionList(session),containsString("permessage-deflate"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue