# | Line 172 | Line 172 | public class SynchronousQueueTest extend | |
---|---|---|
172 | catch (InterruptedException e) { threadUnexpectedException(e); } | |
173 | ||
174 | await(pleaseInterrupt); | |
175 | < | assertThreadStaysAlive(t); |
175 | > | assertThreadBlocks(t, Thread.State.WAITING); |
176 | t.interrupt(); | |
177 | awaitTermination(t); | |
178 | assertEquals(0, q.remainingCapacity()); | |
# | Line 569 | Line 569 | public class SynchronousQueueTest extend | |
569 | fail("timed out"); | |
570 | Thread.yield(); | |
571 | } | |
572 | < | assertTrue(l.size() == 1); |
572 | > | assertEquals(1, l.size()); |
573 | assertSame(one, l.get(0)); | |
574 | awaitTermination(t); | |
575 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |