We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Timeout
1 parent 34dd333 commit 64ee6bfCopy full SHA for 64ee6bf
src/test/java/hudson/plugins/sshslaves/agents/AgentConnectionBase.java
@@ -46,11 +46,15 @@ public class AgentConnectionBase {
46
@ClassRule
47
public static CheckIsDockerAvailable isDockerAvailable = new CheckIsDockerAvailable();
48
49
- @Rule
+ @Rule(order = 10)
50
public JenkinsRule j = new JenkinsRule();
51
52
53
- public Timeout globalTimeout= new Timeout(4, TimeUnit.MINUTES);
+ @Rule(order = -10)
+ public Timeout globalTimeout = Timeout.builder().withTimeout(10, TimeUnit.MINUTES).withLookingForStuckThread(true).build();
54
+
55
+ protected AgentConnectionBase() {
56
+ j.timeout = 0;
57
+ }
58
59
protected boolean isSuccessfullyConnected(Node node) throws IOException, InterruptedException {
60
int count = 0;
0 commit comments