--- jsr166/src/test/tck/SynchronousQueueTest.java 2019/08/13 00:54:51 1.64 +++ jsr166/src/test/tck/SynchronousQueueTest.java 2019/09/05 20:54:24 1.66 @@ -18,7 +18,6 @@ import java.util.concurrent.CountDownLat import java.util.concurrent.Executors; import java.util.concurrent.ExecutorService; import java.util.concurrent.SynchronousQueue; -import java.util.concurrent.ThreadLocalRandom; import junit.framework.Test; @@ -209,12 +208,10 @@ public class SynchronousQueueTest extend pleaseInterrupt.countDown(); try { - q.offer(new Object(), LONG_DELAY_MS, MILLISECONDS); + q.offer(new Object(), LONGER_DELAY_MS, MILLISECONDS); shouldThrow(); } catch (InterruptedException success) {} assertFalse(Thread.interrupted()); - - assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); }}); await(pleaseInterrupt);