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:
Roland 2011-04-21 21:31:30 +02:00
parent b6446f50dd
commit cb332b2756

View file

@ -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)) =>