Fix code example in TestKit docs.
This commit is contained in:
parent
953a316563
commit
abdb9e1f2d
1 changed files with 2 additions and 2 deletions
|
|
@ -702,9 +702,9 @@ trait TestKitBase {
|
|||
* class Test extends TestKit(ActorSystem()) {
|
||||
* try {
|
||||
*
|
||||
* val test = system.actorOf(Props[SomeActor]
|
||||
* val test = system.actorOf(Props[SomeActor])
|
||||
*
|
||||
* within (1 second) {
|
||||
* within (1.second) {
|
||||
* test ! SomeWork
|
||||
* expectMsg(Result1) // bounded to 1 second
|
||||
* expectMsg(Result2) // bounded to the remainder of the 1 second
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue