Skip to content

Commit

Permalink
Merge pull request akka#1462 from akka/wip-slight-improvement-to-coro…
Browse files Browse the repository at this point in the history
…ner-output-√

Minor improvement to Coroner thread count formatting.
  • Loading branch information
viktorklang committed May 23, 2013
2 parents 8ace58d + afe755e commit ba88c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions akka-testkit/src/test/scala/akka/testkit/Coroner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ object Coroner {
val startThreads = threadMx.getThreadCount
if (displayThreadCounts) {
threadMx.resetPeakThreadCount()
out.println(s"Coroner Thread Count Start: current = ${startThreads} in ${reportTitle}")
out.println(s"Coroner Thread Count starts at $startThreads in $reportTitle")
}
watchedHandle.started()
try {
Expand All @@ -106,7 +106,7 @@ object Coroner {
} finally {
if (displayThreadCounts) {
val endThreads = threadMx.getThreadCount
out.println(s"Coroner Thread Count End: current = ${endThreads}, diff = ${endThreads - startThreads}, peak = ${threadMx.getPeakThreadCount} in ${reportTitle}")
out.println(s"Coroner Thread Count started at $startThreads, ended at $endThreads, peaked at ${threadMx.getPeakThreadCount} in $reportTitle")
}
out.flush()
watchedHandle.finished()
Expand Down
4 changes: 2 additions & 2 deletions akka-testkit/src/test/scala/akka/testkit/CoronerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class CoronerSpec extends WordSpec with MustMatchers {
coroner.cancel()
Await.ready(coroner, 1.second)
})
report must include("Coroner Thread Count Start:")
report must include("Coroner Thread Count End:")
report must include("Coroner Thread Count starts at ")
report must include("Coroner Thread Count started at ")
report must include("XXXX")
report must not include ("Coroner's Report")
}
Expand Down

0 comments on commit ba88c44

Please sign in to comment.