Fix remote main compile and testkit tests

This commit is contained in:
Peter Vlugter 2011-10-12 15:36:10 +02:00
parent e2f9528bc0
commit e25ee9f0e2
2 changed files with 3 additions and 3 deletions

View file

@ -230,7 +230,7 @@ class TestKit(_app: AkkaApplication) {
* means reception of the message as part of an expect... or receive... call,
* not reception by the testActor.
*/
def reply(msg: AnyRef) { lastMessage.channel ! msg }
def reply(msg: AnyRef) { lastMessage.channel.!(msg)(testActor) }
/**
* Same as `expectMsg(remaining, obj)`, but correctly treating the timeFactor.
@ -558,7 +558,7 @@ class TestProbe(_application: AkkaApplication) extends TestKit(_application) {
* methods.
*/
def send(actor: ActorRef, msg: AnyRef) = {
actor ! msg
actor.!(msg)(testActor)
}
/**