Skip to content

Commit

Permalink
Merge pull request playframework#586 from xuwei-k/explicit-types
Browse files Browse the repository at this point in the history
add explicit type annotations for implicit val
  • Loading branch information
mergify[bot] authored Jul 14, 2021
2 parents 2aed82c + ca956cc commit a0f0780
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ trait AkkaServerProvider extends BeforeAfterAll {
val defaultTimeout: FiniteDuration = 5.seconds

// Create Akka system for thread and streaming management
implicit val system = ActorSystem()
implicit val materializer = Materializer.matFromSystem
implicit val system: ActorSystem = ActorSystem()
implicit val materializer: Materializer = Materializer.matFromSystem

lazy val futureServer: Future[Http.ServerBinding] = {
// Using 0 (zero) means that a random free port will be used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import scala.io.Codec
class JsonRequestSpec extends Specification with Mockito with AfterAll with JsonBodyWritables {
sequential

implicit val system = ActorSystem()
implicit val materializer = Materializer.matFromSystem
implicit val system: ActorSystem = ActorSystem()
implicit val materializer: Materializer = Materializer.matFromSystem

override def afterAll: Unit = {
system.terminate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import scala.xml.Elem
class XMLRequestSpec extends Specification with Mockito with AfterAll with MustMatchers {
sequential

implicit val system = ActorSystem()
implicit val materializer = Materializer.matFromSystem
implicit val system: ActorSystem = ActorSystem()
implicit val materializer: Materializer = Materializer.matFromSystem

override def afterAll: Unit = {
system.terminate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class AhcWSRequestSpec

sequential

implicit val system = ActorSystem()
implicit val materializer = Materializer.matFromSystem
val wsClient = StandaloneAhcWSClient()
implicit val system: ActorSystem = ActorSystem()
implicit val materializer: Materializer = Materializer.matFromSystem
val wsClient = StandaloneAhcWSClient()

override def afterAll: Unit = {
wsClient.close()
Expand Down

0 comments on commit a0f0780

Please sign in to comment.