#2661 - Changing ignoreMsg of TestProbe to take a PF from Any instead of AnyRef, to support primitives
This commit is contained in:
parent
3ee7dbcc45
commit
d01ea366ce
2 changed files with 9 additions and 2 deletions
|
|
@ -78,6 +78,13 @@ class TestProbeSpec extends AkkaSpec with DefaultTimeout {
|
|||
expectMsgAllClassOf(5 seconds, classOf[Int]) must be(Seq(42))
|
||||
}
|
||||
|
||||
"be able to ignore primitive types" in {
|
||||
ignoreMsg { case 42 ⇒ true }
|
||||
testActor ! 42
|
||||
testActor ! "pigdog"
|
||||
expectMsg("pigdog")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue