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:
parent
858d58708d
commit
355c682faa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue