#3206 - Adding expectTerminated to TestKit
This commit is contained in:
parent
abc4652bc0
commit
e59394628c
13 changed files with 61 additions and 20 deletions
|
|
@ -215,7 +215,7 @@ class TestkitDocSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
|
|||
val probe = TestProbe()
|
||||
probe watch target
|
||||
target ! PoisonPill
|
||||
probe.expectMsgType[Terminated].actor must be(target)
|
||||
probe.expectTerminated(target)
|
||||
//#test-probe-watch
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue