# The StreamTestDefaultMailbox verifies that stream actors are using the dispatcher defined in ActorMaterializerSettings.
#
# All stream tests should use the dedicated `akka.test.stream-dispatcher` or disable this validation by defining:
# akka.actor.default-mailbox.mailbox-type = "akka.dispatch.UnboundedMailbox"
akka.actor.default-mailbox.mailbox-type = "akka.stream.testkit.StreamTestDefaultMailbox"

# Dispatcher for stream actors. Specified in tests with
# ActorMaterializerSettings(dispatcher = "akka.test.stream-dispatcher")
akka.test.stream-dispatcher {
  type = Dispatcher
  executor = "fork-join-executor"
  fork-join-executor {
    parallelism-min = 8
    parallelism-max = 8
  }
  mailbox-requirement = "akka.dispatch.UnboundedMessageQueueSemantics"
}

akka.stream {
  materializer {
    dispatcher = "akka.test.stream-dispatcher"
  }
}
