remove deprecated ActorSystem termination methods, #21423

* those were deprecated by #15757 before 2.4.0
This commit is contained in:
Patrik Nordwall 2017-01-19 14:10:55 +01:00
parent 2a9fa234a1
commit 0f8f47878b
6 changed files with 17 additions and 50 deletions

View file

@ -13,6 +13,7 @@ import akka.event.Logging
import akka.testkit.TestEvent
import akka.testkit.EventFilter
import org.testng.annotations.BeforeClass
import scala.concurrent.Await
trait ActorSystemLifecycle {
@ -31,8 +32,7 @@ trait ActorSystemLifecycle {
@AfterClass
def shutdownActorSystem(): Unit = {
try {
system.terminate()
system.awaitTermination(shutdownTimeout)
Await.ready(system.terminate(), shutdownTimeout)
} catch {
case _: TimeoutException
val msg = "Failed to stop [%s] within [%s] \n%s".format(system.name, shutdownTimeout,