Skip to content

Commit

Permalink
[JENKINS-7291] Accidental Java 7 dependency in test.
Browse files Browse the repository at this point in the history
(cherry picked from commit cedf17e)
  • Loading branch information
jglick authored and olivergondza committed Sep 18, 2013
1 parent 134e01e commit 4089c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/model/QueueTest.java
Expand Up @@ -324,7 +324,7 @@ public void testFlyweightTasksWithoutMasterExecutors() throws Exception {
try {
build = m.scheduleBuild2(0).get(60, TimeUnit.SECONDS);
} catch (TimeoutException x) {
throw new AssertionError(jenkins.getQueue().getApproximateItemsQuickly().toString(), x);
throw (AssertionError) new AssertionError(jenkins.getQueue().getApproximateItemsQuickly().toString()).initCause(x);
}
assertBuildStatusSuccess(build);
assertEquals("", build.getBuiltOnStr());
Expand Down

0 comments on commit 4089c79

Please sign in to comment.