< prev index next >

test/jdk/java/util/concurrent/ThreadPoolExecutor/FlakyThreadFactory.java

Print this page
rev 51731 : imported patch 8210732

*** 33,52 **** */ /* * @test * @summary Should be able to shutdown a pool when worker creation failed. ! * @library /lib/testlibrary/ */ import static java.util.concurrent.TimeUnit.MILLISECONDS; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; ! import jdk.testlibrary.Utils; public class FlakyThreadFactory { static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000); void test(String[] args) throws Throwable { --- 33,52 ---- */ /* * @test * @summary Should be able to shutdown a pool when worker creation failed. ! * @library /test/lib */ import static java.util.concurrent.TimeUnit.MILLISECONDS; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; ! import jdk.test.lib.Utils; public class FlakyThreadFactory { static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000); void test(String[] args) throws Throwable {
< prev index next >