Issue #207 - Change in test expectation

This commit is contained in:
Joakim Erdfelt 2017-05-11 10:57:31 -07:00
parent 644c14253d
commit 135e452509
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ import java.net.URI;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import org.eclipse.jetty.client.HttpResponseException;
import org.eclipse.jetty.websocket.api.Session;
import org.eclipse.jetty.websocket.api.UpgradeException;
import org.eclipse.jetty.websocket.client.ClientUpgradeRequest;
import org.eclipse.jetty.websocket.client.WebSocketClient;
import org.eclipse.jetty.websocket.tests.SimpleServletServer;
@ -93,7 +93,7 @@ public class WebSocketInvalidVersionTest
upgradeRequest.setHeader("Sec-WebSocket-Version", "29");
expectedException.expect(ExecutionException.class);
expectedException.expectCause(instanceOf(UpgradeException.class));
expectedException.expectCause(instanceOf(HttpResponseException.class));
expectedException.expectMessage(containsString("Unsupported websocket version"));
Future<Session> clientConnectFuture = client.connect(clientSocket, wsUri, upgradeRequest);
clientConnectFuture.get();