From cb332b27563e81b4830c82f5998d82c2ade5c2ce Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 21 Apr 2011 21:31:30 +0200 Subject: [PATCH] make testActor.dispatcher=CallingThreadDispatcher - it's needed for unit testing, and it does not hurt since testActor does not send anything --- akka-testkit/src/main/scala/akka/testkit/TestKit.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala index c5cfec6e43..fdad53c4ff 100644 --- a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala +++ b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala @@ -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)) =>