# | Line 234 | Line 234 | public class CyclicBarrierTest extends J | |
---|---|---|
234 | * BrokenBarrierException | |
235 | */ | |
236 | public void testReset_BrokenBarrier() throws InterruptedException { | |
237 | + | Thread.interrupted(); // ensure current thread not interrupted |
238 | final CyclicBarrier c = new CyclicBarrier(3); | |
239 | final CountDownLatch pleaseReset = new CountDownLatch(2); | |
240 | Thread t1 = new ThreadShouldThrow(BrokenBarrierException.class) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |