waitForNodeStartup should now throw after 2 minutes rather than 20 seconds.

Some bank devs were finding integration tests failing as nodes had still not started.
This commit is contained in:
RogerWillis 2016-08-23 13:39:23 +01:00
parent 88da5ba942
commit dc60db5f69

View File

@ -13,7 +13,8 @@ class NodeApi {
class NodeDidNotStartException(message: String): Exception(message)
companion object {
val NODE_WAIT_RETRY_COUNT: Int = 100
// Increased timeout to two minutes.
val NODE_WAIT_RETRY_COUNT: Int = 600
val NODE_WAIT_RETRY_DELAY_MS: Long = 200
fun ensureNodeStartsOrKill(proc: Process, nodeWebserverAddr: HostAndPort) {