summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/jvm/scala-concurrent-tck.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/files/jvm/scala-concurrent-tck.scala b/test/files/jvm/scala-concurrent-tck.scala
index 4261638e1f..ccf1162e19 100644
--- a/test/files/jvm/scala-concurrent-tck.scala
+++ b/test/files/jvm/scala-concurrent-tck.scala
@@ -12,6 +12,7 @@ import scala.concurrent.future
import scala.concurrent.promise
import scala.concurrent.await
+import scala.util.Duration
trait TestBase {
@@ -320,7 +321,7 @@ trait Blocking extends TestBase {
def testAwaitSuccess(): Unit = once {
done =>
val f = future { 0 }
- await(0, f)
+ await(Duration(500, "ms"), f)
done()
}
@@ -331,7 +332,7 @@ trait Blocking extends TestBase {
throw cause
}
try {
- await(0, f)
+ await(Duration(500, "ms"), f)
assert(false)
} catch {
case t =>
@@ -382,7 +383,7 @@ with FutureProjections
with Promises
with Exceptions
{
-
+ System.exit(0)
}