Skip to content

Commit 4089c79

Browse files
jglickolivergondza
authored andcommittedSep 18, 2013
[JENKINS-7291] Accidental Java 7 dependency in test.
(cherry picked from commit cedf17e)
1 parent 134e01e commit 4089c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎test/src/test/java/hudson/model/QueueTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public void testFlyweightTasksWithoutMasterExecutors() throws Exception {
324324
try {
325325
build = m.scheduleBuild2(0).get(60, TimeUnit.SECONDS);
326326
} catch (TimeoutException x) {
327-
throw new AssertionError(jenkins.getQueue().getApproximateItemsQuickly().toString(), x);
327+
throw (AssertionError) new AssertionError(jenkins.getQueue().getApproximateItemsQuickly().toString()).initCause(x);
328328
}
329329
assertBuildStatusSuccess(build);
330330
assertEquals("", build.getBuiltOnStr());

0 commit comments

Comments
 (0)