Removing compilation warnings.
This commit is contained in:
parent
888f81df8d
commit
d0c71d563e
6 changed files with 15 additions and 14 deletions
|
|
@ -129,9 +129,7 @@ class TestkitDocSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
|
|||
val actorRef = TestActorRef(new MyActor)
|
||||
// hypothetical message stimulating a '42' answer
|
||||
val future = actorRef ? Say42
|
||||
val result = future.value.get match {
|
||||
case Success(x: Int) ⇒ x
|
||||
}
|
||||
val Success(result: Int) = future.value.get
|
||||
result must be(42)
|
||||
//#test-behavior
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue