< prev index next >

test/jdk/java/util/concurrent/tck/JSR166TestCase.java

Print this page
8234131: Miscellaneous changes imported from jsr166 CVS 2020-12
Reviewed-by: martin

*** 1225,1236 **** future.get(timeoutMillis, MILLISECONDS); shouldThrow(); } catch (TimeoutException success) { } catch (Exception fail) { threadUnexpectedException(fail); ! } finally { future.cancel(true); } assertTrue(millisElapsedSince(startTime) >= timeoutMillis); } /** * Fails with message "should throw exception". */ --- 1225,1237 ---- future.get(timeoutMillis, MILLISECONDS); shouldThrow(); } catch (TimeoutException success) { } catch (Exception fail) { threadUnexpectedException(fail); ! } assertTrue(millisElapsedSince(startTime) >= timeoutMillis); + assertFalse(future.isDone()); } /** * Fails with message "should throw exception". */
< prev index next >