111 |
|
try { |
112 |
|
assertNull(a.get()); |
113 |
|
assertNull(a.get(randomTimeout(), randomTimeUnit())); |
114 |
< |
} catch (Throwable fail) { threadUnexpectedException(fail); } |
114 |
> |
} catch (Exception fail) { threadUnexpectedException(fail); } |
115 |
|
} |
116 |
|
|
117 |
|
void checkCancelled(CountedCompleter a) { |
731 |
|
CCF f = new LCCF(8); |
732 |
|
assertSame(f, f.fork()); |
733 |
|
helpQuiesce(); |
734 |
+ |
while (!f.isDone()) // wait out race |
735 |
+ |
; |
736 |
|
assertEquals(21, f.number); |
737 |
|
assertEquals(0, getQueuedTaskCount()); |
738 |
|
checkCompletedNormally(f); |