thank you Konrad, that was the issue

On Sunday, May 25, 2014 1:40:55 AM UTC+2, Konrad Malawski wrote:
>
> Hello Oskar, 
> based on the two key datapoints from your email: FSM testing + at 
> akka.testkit.CallingThreadDispatcher.dispatch(
> *CallingThreadDispatcher.scala*:208)
>
> I deduce that you are using 
> TestActorRef<http://doc.akka.io/api/akka/2.3.3/?_ga=1.163376252.134227815.1400974226#akka.testkit.TestActorRef>
>  (well 
> you’re probably using TestFSMRef as suggested by the FSM 
> docs<http://doc.akka.io/docs/akka/snapshot/scala/testing.html#testfsmref>, 
> which also IS-A TestActorRef), which is cool for testing one actor *in 
> isolation*, yet it won’t work nicely when you test interaction between 
> actors, because it’s using the *CallingThreadDispatcher*. These 
> abstractions allow to very easily test “one actor”, yet at the trade of of 
> effectively being single threaded (sic!), which is why you’re running into 
> deadlocks. 
>
> So while these patterns and classes are good for *synchronous* testing, 
> they won’t play well if you have any kind of bigger interaction going on 
> between actors. Please use the plain TestKit instead, like explained in the 
> “Asynchronous Integration Testing with 
> TestKit<http://doc.akka.io/docs/akka/snapshot/scala/testing.html#Asynchronous_Integration_Testing_with_TestKit>"
>  
> section of the docs.
>
>
> I hope this helps, happy hakking!
>
>
> -- 
> Konrad 'ktoso' Malawski
> hAkker @ typesafe
>
> <http://typesafe.com/go-reactive-activator-contest>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to