Increase external proxy test timeout.
This commit is contained in:
parent
06504f2c65
commit
eed3a7fec0
|
@ -377,7 +377,8 @@ public class ProxyTunnellingTest
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ContentExchange exchange = new ContentExchange(true);
|
ContentExchange exchange = new ContentExchange(true);
|
||||||
exchange.setTimeout(5000);
|
// Use a longer timeout, sometimes the proxy takes a while to answer
|
||||||
|
exchange.setTimeout(20000);
|
||||||
exchange.setURL("https://www.google.com");
|
exchange.setURL("https://www.google.com");
|
||||||
httpClient.send(exchange);
|
httpClient.send(exchange);
|
||||||
assertEquals(HttpExchange.STATUS_COMPLETED, exchange.waitForDone());
|
assertEquals(HttpExchange.STATUS_COMPLETED, exchange.waitForDone());
|
||||||
|
|
Loading…
Reference in New Issue