diff --git a/pom.xml b/pom.xml index 1dc8674a..f8f5b85a 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,7 @@ org.jenkins-ci.plugins apache-httpcomponents-client-4-api - 4.5.5-2.2-rc32.4a9f3bcc3908 + 4.5.5-2.2-rc36.5d1d316e6838 org.mockito diff --git a/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/NetworkTest.java b/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/NetworkTest.java index 9f2b500b..b4f51895 100644 --- a/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/NetworkTest.java +++ b/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/NetworkTest.java @@ -30,6 +30,7 @@ import hudson.tasks.LogRotator; import io.jenkins.plugins.httpclient.RobustHTTPClient; import java.util.Objects; +import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.stream.Collectors; @@ -150,7 +151,7 @@ public void repeatedRecoverableErrorArchiving() throws Exception { public void hangArchiving() throws Exception { WorkflowJob p = r.createProject(WorkflowJob.class, "p"); JCloudsArtifactManager.client = new RobustHTTPClient(); - JCloudsArtifactManager.client.setTimeout(5); + JCloudsArtifactManager.client.setTimeout(5, TimeUnit.SECONDS); try { hangIn(BlobStoreProvider.HttpMethod.PUT, "p/1/artifacts/f"); p.setDefinition(new CpsFlowDefinition("node('remote') {writeFile file: 'f', text: '.'; archiveArtifacts 'f'}", true)); @@ -245,7 +246,7 @@ public void repeatedRecoverableErrorUnstashing() throws Exception { public void hangUnstashing() throws Exception { WorkflowJob p = r.createProject(WorkflowJob.class, "p"); JCloudsArtifactManager.client = new RobustHTTPClient(); - JCloudsArtifactManager.client.setTimeout(5); + JCloudsArtifactManager.client.setTimeout(5, TimeUnit.SECONDS); try { hangIn(BlobStoreProvider.HttpMethod.GET, "p/1/stashes/f.tgz"); p.setDefinition(new CpsFlowDefinition("node('remote') {writeFile file: 'f', text: '.'; stash 'f'; unstash 'f'}", true));