summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/partest/scala/tools/partest/nest/DirectRunner.scala3
1 files changed, 2 insertions, 1 deletions
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