mirror of
https://github.com/corda/corda.git
synced 2025-03-11 15:04:14 +00:00
This reverts commit ecf74053
This commit is contained in:
parent
99fd08909d
commit
4639a8f68b
@ -70,11 +70,7 @@ class RPCStabilityTests {
|
|||||||
private fun waitUntilNumberOfThreadsStable(executorService: ScheduledExecutorService): Map<Thread, List<StackTraceElement>> {
|
private fun waitUntilNumberOfThreadsStable(executorService: ScheduledExecutorService): Map<Thread, List<StackTraceElement>> {
|
||||||
val values = ConcurrentLinkedQueue<Map<Thread, List<StackTraceElement>>>()
|
val values = ConcurrentLinkedQueue<Map<Thread, List<StackTraceElement>>>()
|
||||||
return poll(executorService, "number of threads to become stable", 250.millis) {
|
return poll(executorService, "number of threads to become stable", 250.millis) {
|
||||||
// Exclude threads from JUnits timeout group which we use for timing out tests
|
values.add(Thread.getAllStackTraces().mapValues { it.value.toList() })
|
||||||
val map: Map<Thread, List<StackTraceElement>> = Thread.getAllStackTraces()
|
|
||||||
.filterKeys { it.threadGroup.name != "FailOnTimeoutGroup" }
|
|
||||||
.mapValues { it.value.toList() }
|
|
||||||
values.add(map)
|
|
||||||
if (values.size > 5) {
|
if (values.size > 5) {
|
||||||
values.poll()
|
values.poll()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user