make testActor.dispatcher=CallingThreadDispatcher
- it's needed for unit testing, and it does not hurt since testActor does not send anything
This commit is contained in:
parent
b6446f50dd
commit
cb332b2756
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ class TestActor(queue : BlockingDeque[AnyRef]) extends Actor with FSM[Int, TestA
|
|||
import FSM._
|
||||
import TestActor._
|
||||
|
||||
self.dispatcher = CallingThreadDispatcher.global
|
||||
|
||||
startWith(0, None)
|
||||
when(0, stateTimeout = 5 seconds) {
|
||||
case Ev(SetTimeout(d)) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue