From 4d7069c7114b638c51b5b76cde467e6725294650 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 17 Jul 2012 10:36:22 -0700 Subject: Increase partest timeout and emit warning when it hits. --- src/partest/scala/tools/partest/nest/DirectRunner.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/partest/scala/tools/partest/nest/DirectRunner.scala b/src/partest/scala/tools/partest/nest/DirectRunner.scala index 2bb373d9c5..6c239721c3 100644 --- a/src/partest/scala/tools/partest/nest/DirectRunner.scala +++ b/src/partest/scala/tools/partest/nest/DirectRunner.scala @@ -59,7 +59,8 @@ trait DirectRunner { val futures = kindFiles map (f => (f, pool submit callable(manager runTest f))) toMap pool.shutdown() - pool.awaitTermination(1, TimeUnit.HOURS) + if (!pool.awaitTermination(4, TimeUnit.HOURS)) + NestUI.warning("Thread pool timeout elapsed before all tests were complete!") for ((file, future) <- futures) yield { val state = if (future.isCancelled) TestState.Timeout else future.get -- cgit v1.2.3