Almost there... ActorRefSpec still has a failing test
This commit is contained in:
parent
48deb311fc
commit
9007b6e847
8 changed files with 189 additions and 101 deletions
|
|
@ -4,7 +4,6 @@
|
|||
package akka.testkit
|
||||
|
||||
import akka.event.EventHandler
|
||||
import akka.dispatch.{ MessageDispatcher, MessageInvocation, TaskInvocation, Promise, ActorPromise }
|
||||
import java.util.concurrent.locks.ReentrantLock
|
||||
import java.util.LinkedList
|
||||
import java.util.concurrent.RejectedExecutionException
|
||||
|
|
@ -12,6 +11,7 @@ import akka.util.Switch
|
|||
import java.lang.ref.WeakReference
|
||||
import scala.annotation.tailrec
|
||||
import akka.actor.ActorCell
|
||||
import akka.dispatch._
|
||||
|
||||
/*
|
||||
* Locking rules:
|
||||
|
|
@ -137,6 +137,10 @@ class CallingThreadDispatcher(val name: String = "calling-thread", val warnings:
|
|||
|
||||
override def mailboxIsEmpty(actor: ActorCell): Boolean = getMailbox(actor).queue.isEmpty
|
||||
|
||||
protected[akka] override def systemDispatch(handle: SystemMessageInvocation) {
|
||||
handle.invoke() //Roland, look at me
|
||||
}
|
||||
|
||||
protected[akka] override def dispatch(handle: MessageInvocation) {
|
||||
val mbox = getMailbox(handle.receiver)
|
||||
val queue = mbox.queue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue