Skip to content

Commit

Permalink
Health checker progress fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pun-ky committed Apr 22, 2021
1 parent 2dfe31a commit b0dd813
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class HealthChecker(val common: CommonExtension) {
return listOf()
}

common.progress(checks.size) {
common.progress(assuranceRetry.times) {
step = "Health checking"

message = "Wait Before"
Expand Down Expand Up @@ -124,7 +124,7 @@ class HealthChecker(val common: CommonExtension) {

private fun ProgressIndicator.start(retry: Retry, verbose: Boolean) = retry.withSleep<Unit, HealthException> { no ->
message = when {
failed.isNotEmpty() -> "Attempt $no/${retry.times}, ${failed.size} failed"
failed.isNotEmpty() -> "Attempt $no/${retry.times}, Check(s) succeeded ${passed.size}/${all.size}"
else -> "Attempt $no/${retry.times}"
}

Expand Down

0 comments on commit b0dd813

Please sign in to comment.