add test to ActorModelSpec

dispatcherShouldHandleQueueingFromMultipleThreads tests for possible race
conditions in prohibiting multiple threads running the same actor concurrently
This commit is contained in:
Roland Kuhn 2011-03-06 21:53:09 +01:00
parent 50b2c14235
commit 2deb47f8fa
3 changed files with 25 additions and 3 deletions

View file

@ -101,7 +101,7 @@ class CallingThreadDispatcher(val warnings: Boolean = true) extends MessageDispa
private[akka] override def shutdown {}
private[akka] override def timeoutMs = 0L
private[akka] override def timeoutMs = 100L
override def suspend(actor: ActorRef) {
getMailbox(actor).suspended.switchOn