Merge pull request #1211 from akka/wip-3110-test-thread-dump-rich
Dump diagnostics (Coroner's Report) if a test takes too long. Fixes #3110
This commit is contained in:
commit
a78e26ae41
6 changed files with 305 additions and 2 deletions
|
|
@ -85,6 +85,7 @@ object StressMultiJvmSpec extends MultiNodeConfig {
|
|||
high-throughput-duration = 10s
|
||||
supervision-duration = 10s
|
||||
supervision-one-iteration = 1s
|
||||
expected-test-duration = 600s
|
||||
# actors are created in a tree structure defined
|
||||
# by tree-width (number of children for each actor) and
|
||||
# tree-levels, total number of actors can be calculated by
|
||||
|
|
@ -169,6 +170,7 @@ object StressMultiJvmSpec extends MultiNodeConfig {
|
|||
val highThroughputDuration = getDuration("high-throughput-duration") * dFactor
|
||||
val supervisionDuration = getDuration("supervision-duration") * dFactor
|
||||
val supervisionOneIteration = getDuration("supervision-one-iteration") * dFactor
|
||||
val expectedTestDuration = getDuration("expected-test-duration") * dFactor
|
||||
val treeWidth = getInt("tree-width")
|
||||
val treeLevels = getInt("tree-levels")
|
||||
val reportMetricsInterval = getDuration("report-metrics-interval")
|
||||
|
|
@ -650,6 +652,8 @@ abstract class StressSpec
|
|||
|
||||
override def beforeEach(): Unit = { step += 1 }
|
||||
|
||||
override def expectedTestDuration = settings.expectedTestDuration
|
||||
|
||||
override def muteLog(sys: ActorSystem = system): Unit = {
|
||||
super.muteLog(sys)
|
||||
sys.eventStream.publish(Mute(EventFilter[RuntimeException](pattern = ".*Simulated exception.*")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue