Skip to content
Permalink
Browse files
[JENKINS-36871] Test timing is needs longer when dealing with slower …
…build agents
  • Loading branch information
stephenc committed Aug 5, 2016
1 parent 41841e5 commit 0529c154be04e030855a801e65cd0d096ae8130f
Showing 1 changed file with 13 additions and 13 deletions.
@@ -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);
@@ -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));
@@ -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));
@@ -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));
@@ -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));
@@ -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));
@@ -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));

0 comments on commit 0529c15

Please sign in to comment.