test exception reception on TestActorRef.apply()
This commit is contained in:
parent
c86b63cff8
commit
df9be27718
1 changed files with 1 additions and 0 deletions
|
|
@ -235,6 +235,7 @@ class TestActorRefSpec extends WordSpec with MustMatchers with BeforeAndAfterEac
|
|||
val ref = TestActorRef[WorkerActor].start()
|
||||
ref.isDefinedAt("work") must be (true)
|
||||
ref.isDefinedAt("sleep") must be (false)
|
||||
intercept[IllegalActorStateException] { ref("work") }
|
||||
val ch = Future.channel()
|
||||
ref ! ch
|
||||
val f = ch.future
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue