removed deprecation warnings from akka-remote-tests
This commit is contained in:
parent
4bdfb07653
commit
cfb1dfa745
2 changed files with 2 additions and 2 deletions
|
|
@ -523,7 +523,7 @@ class BarrierSpec extends AkkaSpec(BarrierSpec.config) with ImplicitSender {
|
|||
|
||||
private def withController(participants: Int)(f: (ActorRef) ⇒ Unit): Unit = {
|
||||
system.actorOf(Props(new Actor {
|
||||
val controller = context.actorOf(Props(new Controller(participants, new InetSocketAddress(InetAddress.getLocalHost, 0))))
|
||||
val controller = context.actorOf(Props(classOf[Controller], participants, new InetSocketAddress(InetAddress.getLocalHost, 0)))
|
||||
controller ! GetSockAddr
|
||||
override def supervisorStrategy = OneForOneStrategy() {
|
||||
case x ⇒ testActor ! Failed(controller, x); SupervisorStrategy.Restart
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ControllerSpec extends AkkaSpec(ControllerSpec.config) with ImplicitSender
|
|||
"A Controller" must {
|
||||
|
||||
"publish its nodes" in {
|
||||
val c = system.actorOf(Props(new Controller(1, new InetSocketAddress(InetAddress.getLocalHost, 0))))
|
||||
val c = system.actorOf(Props(classOf[Controller], 1, new InetSocketAddress(InetAddress.getLocalHost, 0)))
|
||||
c ! NodeInfo(A, AddressFromURIString("akka://sys"), testActor)
|
||||
expectMsg(ToClient(Done))
|
||||
c ! NodeInfo(B, AddressFromURIString("akka://sys"), testActor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue