Add connection timeout to jodd http client tests (#7947)

This commit is contained in:
Lauri Tulmin 2023-03-01 21:24:22 +02:00 committed by GitHub
parent c721852d5f
commit 5fa02fd2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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());