fix MultiNodeSpec.getCallerName, #22186
* it didn't work with RemotingMultiNodeSpec * that was breaking Artery performance plots
This commit is contained in:
parent
698b814c5d
commit
58acf7bf8f
1 changed files with 2 additions and 1 deletions
|
|
@ -234,7 +234,8 @@ object MultiNodeSpec {
|
|||
}
|
||||
|
||||
private def getCallerName(clazz: Class[_]): String = {
|
||||
val s = Thread.currentThread.getStackTrace map (_.getClassName) drop 1 dropWhile (_ matches ".*MultiNodeSpec.?$")
|
||||
val pattern = s"(akka\\.remote\\.testkit\\.MultiNodeSpec.*|akka\\.remote\\.RemotingMultiNodeSpec)"
|
||||
val s = Thread.currentThread.getStackTrace.map(_.getClassName).drop(1).dropWhile(_.matches(pattern))
|
||||
val reduced = s.lastIndexWhere(_ == clazz.getName) match {
|
||||
case -1 ⇒ s
|
||||
case z ⇒ s drop (z + 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue