make all tests pass again with 2.10.0-M7

This commit is contained in:
Roland 2012-08-22 15:52:32 +02:00
parent 531e3fc5a0
commit d110836629
4 changed files with 8 additions and 12 deletions

View file

@ -221,7 +221,7 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
"creating a Props config" in {
//#creating-props-config
import akka.actor.Props
val props1 = Props()
val props1 = Props.empty
val props2 = Props[MyActor]
val props3 = Props(new MyActor)
val props4 = Props(

View file

@ -108,7 +108,7 @@ class FutureDocSpec extends AkkaSpec {
}
val result = Await.result(f2, 1 second)
result must be(10)
f1.value must be(Some(Right("HelloWorld")))
f1.value must be(Some(Success("HelloWorld")))
//#map
}

View file

@ -217,7 +217,7 @@ class TestkitDocSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
val future = probe.ref ? "hello"
probe.expectMsg(0 millis, "hello") // TestActor runs on CallingThreadDispatcher
probe.reply("world")
assert(future.isCompleted && future.value == Some(Right("world")))
assert(future.isCompleted && future.value == Some(Success("world")))
//#test-probe-reply
}