diff --git a/tools/notaryhealthcheck/src/main/kotlin/net/corda/notaryhealthcheck/Main.kt b/tools/notaryhealthcheck/src/main/kotlin/net/corda/notaryhealthcheck/Main.kt index fc6dc8348b..d12dea163e 100644 --- a/tools/notaryhealthcheck/src/main/kotlin/net/corda/notaryhealthcheck/Main.kt +++ b/tools/notaryhealthcheck/src/main/kotlin/net/corda/notaryhealthcheck/Main.kt @@ -7,6 +7,7 @@ import net.corda.core.utilities.NetworkHostAndPort import net.corda.nodeapi.internal.config.User import net.corda.node.services.Permissions import net.corda.notaryhealthcheck.flows.HealthCheckFlow +import java.util.concurrent.TimeUnit fun main(args: Array) { val addresses = listOf(NetworkHostAndPort("localhost", 10003)) @@ -22,6 +23,6 @@ fun main(args: Array) { fun healthCheck(rpc: CordaRPCOps) { val notary = rpc.notaryIdentities().first() print("Running health check for notary cluster ${notary.name}... ") - rpc.startFlow(::HealthCheckFlow, notary, true).returnValue.get() + rpc.startFlow(::HealthCheckFlow, notary, true).returnValue.get(30, TimeUnit.SECONDS) println("Done.") }