407326 - Test Failure: org.eclipse.jetty.client.HttpClientStreamTest.testInputStreamResponseListenerFailedBeforeResponse[0].

Instead of using port 0, now using an ephemeral port that is not listening anymore.
This commit is contained in:
Simone Bordet 2013-05-09 12:34:07 +02:00
parent 858d58708d
commit 355c682faa
1 changed files with 3 additions and 1 deletions

View File

@ -449,10 +449,12 @@ public class HttpClientStreamTest extends AbstractHttpClientServerTest
public void testInputStreamResponseListenerFailedBeforeResponse() throws Exception
{
start(new EmptyServerHandler());
int port = connector.getLocalPort();
server.stop();
InputStreamResponseListener listener = new InputStreamResponseListener();
// Connect to the wrong port
client.newRequest("localhost", 0)
client.newRequest("localhost", port)
.scheme(scheme)
.send(listener);
Result result = listener.await(5, TimeUnit.SECONDS);