File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import scala.concurrent.future
1212import scala .concurrent .promise
1313import scala .concurrent .await
1414
15+ import scala .util .Duration
1516
1617
1718trait 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
382383with Promises
383384with Exceptions
384385{
385-
386+ System .exit( 0 )
386387}
387388
388389
You can’t perform that action at this time.
0 commit comments