All tests passing except akka-remote
This commit is contained in:
parent
c03c4d3f45
commit
fb008632cb
10 changed files with 89 additions and 170 deletions
|
|
@ -91,6 +91,8 @@ class TestActorRefSpec extends WordSpec with MustMatchers with BeforeAndAfterEac
|
|||
|
||||
import TestActorRefSpec._
|
||||
|
||||
EventHandler.start()
|
||||
|
||||
override def beforeEach {
|
||||
otherthread = null
|
||||
}
|
||||
|
|
@ -177,9 +179,7 @@ class TestActorRefSpec extends WordSpec with MustMatchers with BeforeAndAfterEac
|
|||
def receiveT = { case "sendKill" => ref ! Kill }
|
||||
}).start()
|
||||
|
||||
val l = stopLog()
|
||||
boss ! "sendKill"
|
||||
startLog(l)
|
||||
|
||||
counter must be (0)
|
||||
assertThread
|
||||
|
|
@ -244,15 +244,4 @@ class TestActorRefSpec extends WordSpec with MustMatchers with BeforeAndAfterEac
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
private def stopLog() = {
|
||||
val l = Actor.registry.actorsFor[EventHandler.DefaultListener]
|
||||
l foreach (EventHandler.removeListener(_))
|
||||
l
|
||||
}
|
||||
|
||||
private def startLog(l : Array[ActorRef]) {
|
||||
l foreach {a => EventHandler.addListener(Actor.actorOf[EventHandler.DefaultListener])}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue