6957683: test/java/util/concurrent/ThreadPoolExecutor/Custom.java failing
authorgadams
Wed, 08 Feb 2012 11:19:25 +0000
changeset 11832 c0b541c9cc2b
parent 11831 d9aed944f13c
child 11833 e522d55f4c3d
6957683: test/java/util/concurrent/ThreadPoolExecutor/Custom.java failing Reviewed-by: chegar, dholmes, alanb
jdk/test/java/util/concurrent/ThreadPoolExecutor/Custom.java
--- a/jdk/test/java/util/concurrent/ThreadPoolExecutor/Custom.java	Wed Feb 08 11:18:29 2012 +0000
+++ b/jdk/test/java/util/concurrent/ThreadPoolExecutor/Custom.java	Wed Feb 08 11:19:25 2012 +0000
@@ -100,8 +100,8 @@
         equal(countExecutorThreads(), threadCount);
         equal(CustomTask.births.get(), threadCount);
         tpe.shutdown();
-        tpe.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
-        Thread.sleep(10);
+        tpe.awaitTermination(120, TimeUnit.SECONDS);
+        Thread.sleep(1000);
         equal(countExecutorThreads(), 0);
 
         CustomSTPE stpe = new CustomSTPE();
@@ -110,8 +110,8 @@
         equal(CustomSTPE.decorations.get(), threadCount);
         equal(countExecutorThreads(), threadCount);
         stpe.shutdown();
-        stpe.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
-        Thread.sleep(10);
+        stpe.awaitTermination(120, TimeUnit.SECONDS);
+        Thread.sleep(1000);
         equal(countExecutorThreads(), 0);
 
         System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed);