769 |
|
final LinkedBlockingDeque q = new LinkedBlockingDeque(2); |
770 |
|
Thread t = new Thread(new CheckedRunnable() { |
771 |
|
public void realRun() throws InterruptedException { |
772 |
– |
assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS)); |
773 |
– |
assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS)); |
772 |
|
try { |
773 |
+ |
assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS)); |
774 |
+ |
assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS)); |
775 |
|
q.poll(LONG_DELAY_MS, MILLISECONDS); |
776 |
|
shouldThrow(); |
777 |
|
} catch (InterruptedException success) {} |