Increase timeout for system termination in BasicClusterConfigSpec (#24446)

Refs #24444
This commit is contained in:
Christopher Batey 2018-01-30 15:23:49 +00:00 committed by GitHub
parent c023d51367
commit 5b2a4edd2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -3,17 +3,20 @@ package akka.actor.typed
import akka.testkit.typed.{ TestInbox, TestKit }
import akka.util.Timeout
import org.scalactic.TypeCheckedTripleEquals
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.concurrent.{ Eventually, ScalaFutures }
import org.scalatest.time.Span
import org.scalatest.{ BeforeAndAfterAll, Matchers, WordSpecLike }
import scala.concurrent.duration._
import scala.util.control.NoStackTrace
/**
* Helper trait to include standard traits for typed tests
*/
trait TypedAkkaSpec extends WordSpecLike with Matchers with BeforeAndAfterAll with ScalaFutures with TypeCheckedTripleEquals {
implicit val akkaPatience = PatienceConfig(3.seconds, Span(100, org.scalatest.time.Millis))
trait TypedAkkaSpec extends WordSpecLike with Matchers with BeforeAndAfterAll with ScalaFutures
with TypeCheckedTripleEquals with Eventually {
implicit override val patienceConfig: PatienceConfig = PatienceConfig(3.seconds, Span(100, org.scalatest.time.Millis))
implicit val timeout = Timeout(3.seconds)
def assertEmpty(inboxes: TestInbox[_]*): Unit = {

View file

@ -47,7 +47,7 @@ akka {
).withFallback(configSystem1)
}
class BasicClusterConfigSpec extends WordSpec with ScalaFutures with Eventually {
class BasicClusterConfigSpec extends TypedAkkaSpec {
import BasicClusterExampleSpec._