Skip to content

Commit

Permalink
[JENKINS-36871] Test timing is needs longer when dealing with slower …
Browse files Browse the repository at this point in the history
…build agents
  • Loading branch information
stephenc committed Aug 5, 2016
1 parent 41841e5 commit 0529c15
Showing 1 changed file with 13 additions and 13 deletions.
Expand Up @@ -218,7 +218,7 @@ public void beforeChannel(@NonNull JnlpConnectionState event) {
public void afterChannel(@NonNull JnlpConnectionState event) {
}
});
eastRemoting = eastChan.get(1, TimeUnit.SECONDS);
eastRemoting = eastChan.get(10, TimeUnit.SECONDS);
assertThat(eastRemoting, notNullValue());
eastRemoting.callAsync(new TestCallable());
westRemoting = westChan.get(10, TimeUnit.SECONDS);
Expand Down Expand Up @@ -293,13 +293,13 @@ public void afterChannel(@NonNull JnlpConnectionState event) {
}
});
try {
eastRemoting = eastChan.get(1, TimeUnit.SECONDS);
eastRemoting = eastChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(IOException.class));
}
try {
westRemoting = westChan.get(1, TimeUnit.SECONDS);
westRemoting = westChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
Expand Down Expand Up @@ -371,13 +371,13 @@ public void afterChannel(@NonNull JnlpConnectionState event) {
}
});
try {
eastRemoting = eastChan.get(1, TimeUnit.SECONDS);
eastRemoting = eastChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(IOException.class));
}
try {
westRemoting = westChan.get(1, TimeUnit.SECONDS);
westRemoting = westChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
Expand Down Expand Up @@ -450,13 +450,13 @@ public void afterChannel(@NonNull JnlpConnectionState event) {
}
});
try {
eastRemoting = eastChan.get(1, TimeUnit.SECONDS);
eastRemoting = eastChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(IOException.class));
}
try {
westRemoting = westChan.get(1, TimeUnit.SECONDS);
westRemoting = westChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
Expand Down Expand Up @@ -529,13 +529,13 @@ public void afterChannel(@NonNull JnlpConnectionState event) {
}
});
try {
eastRemoting = eastChan.get(1, TimeUnit.SECONDS);
eastRemoting = eastChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(IOException.class));
}
try {
westRemoting = westChan.get(1, TimeUnit.SECONDS);
westRemoting = westChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
Expand Down Expand Up @@ -605,13 +605,13 @@ public void afterChannel(@NonNull JnlpConnectionState event) {
}
});
try {
eastRemoting = eastChan.get(1, TimeUnit.SECONDS);
eastRemoting = eastChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
}
try {
westRemoting = westChan.get(1, TimeUnit.SECONDS);
westRemoting = westChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
Expand Down Expand Up @@ -680,13 +680,13 @@ public void afterChannel(@NonNull JnlpConnectionState event) {
}
});
try {
eastRemoting = eastChan.get(1, TimeUnit.SECONDS);
eastRemoting = eastChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
}
try {
westRemoting = westChan.get(1, TimeUnit.SECONDS);
westRemoting = westChan.get(10, TimeUnit.SECONDS);
fail();
} catch (ExecutionException e) {
assertThat(e.getCause(), instanceOf(ConnectionRefusalException.class));
Expand Down

0 comments on commit 0529c15

Please sign in to comment.