Skip to content

Commit

Permalink
Fixing use of Timeout (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Dec 19, 2023
1 parent 34dd333 commit 64ee6bf
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ public class AgentConnectionBase {
@ClassRule
public static CheckIsDockerAvailable isDockerAvailable = new CheckIsDockerAvailable();

@Rule
@Rule(order = 10)
public JenkinsRule j = new JenkinsRule();

@Rule
public Timeout globalTimeout= new Timeout(4, TimeUnit.MINUTES);
@Rule(order = -10)
public Timeout globalTimeout = Timeout.builder().withTimeout(10, TimeUnit.MINUTES).withLookingForStuckThread(true).build();

protected AgentConnectionBase() {
j.timeout = 0;
}

protected boolean isSuccessfullyConnected(Node node) throws IOException, InterruptedException {
int count = 0;
Expand Down

0 comments on commit 64ee6bf

Please sign in to comment.