Increase timeout for system termination in BasicClusterConfigSpec (#24446)
Refs #24444
This commit is contained in:
parent
c023d51367
commit
5b2a4edd2c
2 changed files with 7 additions and 4 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ akka {
|
|||
).withFallback(configSystem1)
|
||||
}
|
||||
|
||||
class BasicClusterConfigSpec extends WordSpec with ScalaFutures with Eventually {
|
||||
class BasicClusterConfigSpec extends TypedAkkaSpec {
|
||||
|
||||
import BasicClusterExampleSpec._
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue