Add connection timeout to jodd http client tests (#7947)
This commit is contained in:
parent
c721852d5f
commit
5fa02fd2ab
|
@ -29,6 +29,7 @@ public class JoddHttpTest extends AbstractHttpClientTest<HttpRequest> {
|
|||
.set(uri.toString())
|
||||
.followRedirects(true)
|
||||
.connectionKeepAlive(true)
|
||||
.connectionTimeout((int) CONNECTION_TIMEOUT.toMillis())
|
||||
.header("user-agent", USER_AGENT);
|
||||
for (Map.Entry<String, String> header : headers.entrySet()) {
|
||||
request.headerOverwrite(header.getKey(), header.getValue());
|
||||
|
|
Loading…
Reference in New Issue