test/jdk/java/util/concurrent/tck/SemaphoreTest.java
changeset 48843 21efc1774302
parent 47216 71c04702a3d5
child 58138 1e4270f875ee
--- a/test/jdk/java/util/concurrent/tck/SemaphoreTest.java	Sat Feb 10 09:17:53 2018 -0800
+++ b/test/jdk/java/util/concurrent/tck/SemaphoreTest.java	Sat Feb 10 09:23:41 2018 -0800
@@ -40,7 +40,6 @@
 import java.util.concurrent.Semaphore;
 import java.util.concurrent.ThreadLocalRandom;
 
-import junit.framework.AssertionFailedError;
 import junit.framework.Test;
 import junit.framework.TestSuite;
 
@@ -101,7 +100,7 @@
         long startTime = System.nanoTime();
         while (!s.hasQueuedThread(t)) {
             if (millisElapsedSince(startTime) > LONG_DELAY_MS)
-                throw new AssertionFailedError("timed out");
+                throw new AssertionError("timed out");
             Thread.yield();
         }
         assertTrue(s.hasQueuedThreads());
@@ -115,7 +114,7 @@
         long startTime = System.nanoTime();
         while (!s.hasQueuedThreads()) {
             if (millisElapsedSince(startTime) > LONG_DELAY_MS)
-                throw new AssertionFailedError("timed out");
+                throw new AssertionError("timed out");
             Thread.yield();
         }
     }