要旨
  • ScalaTestは非同期でのテスト用にExecutionContextを提供するAsyncTestSuiteが用意されている
    • AsyncFunSpecなど
    • org.scalatest.concurrent.SerialExecutionContext
  • Akka TestKitにはテスト用のExecutionContextが供給されている
    • akka.testkit.CallingThreadDispatcher
  • SerialExecutionContextからCallingThreadDispatcherを呼ぶとデッドロックする(逆も然り)