squash some warnings

This commit is contained in:
Roland Kuhn 2016-01-17 16:37:45 +01:00
parent 3140e72265
commit e5baba2b29
42 changed files with 146 additions and 161 deletions

View file

@ -10,8 +10,8 @@ import akka.http.scaladsl.model.HttpResponse
import akka.stream.{ Materializer, ActorMaterializer }
import org.junit.rules.ExternalResource
import org.junit.{ Assert, Rule }
import scala.concurrent.duration._
import scala.concurrent.Await
/**
* A RouteTest that uses JUnit assertions. ActorSystem and Materializer are provided as an [[ExternalResource]]
@ -66,8 +66,7 @@ class ActorSystemResource extends ExternalResource {
_materializer = createMaterializer(_system)
}
override def after(): Unit = {
_system.terminate()
_system.awaitTermination(5.seconds)
Await.result(_system.terminate(), 5.seconds)
_system = null
_materializer = null
}