Skip to content

Commit 5a4b555

Browse files
committed
Make base TCK more uniform with Akka TCK
1 parent 500f451 commit 5a4b555

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/files/jvm/scala-concurrent-tck.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import scala.concurrent.future
1212
import scala.concurrent.promise
1313
import scala.concurrent.await
1414

15+
import scala.util.Duration
1516

1617

1718
trait TestBase {
@@ -320,7 +321,7 @@ trait Blocking extends TestBase {
320321
def testAwaitSuccess(): Unit = once {
321322
done =>
322323
val f = future { 0 }
323-
await(0, f)
324+
await(Duration(500, "ms"), f)
324325
done()
325326
}
326327

@@ -331,7 +332,7 @@ trait Blocking extends TestBase {
331332
throw cause
332333
}
333334
try {
334-
await(0, f)
335+
await(Duration(500, "ms"), f)
335336
assert(false)
336337
} catch {
337338
case t =>
@@ -382,7 +383,7 @@ with FutureProjections
382383
with Promises
383384
with Exceptions
384385
{
385-
386+
System.exit(0)
386387
}
387388

388389

0 commit comments

Comments
 (0)