【发布时间】:2019-05-24 22:47:59
【问题描述】:
以下流测试曾经在 Corda 3 中工作...
@Test
fun `can ping counterparties`() {
val acceptorFlowFutures = listOf(nodeB, nodeC).map {
it.registerInitiatedFlow(SendPingAcceptorFlow::class.java).toFuture()
}
nodeA.startFlow(SendPingInitiatorFlow("Ping!"))
network.runNetwork()
acceptorFlowFutures.forEach {
val result = it
.getOrThrow(Duration.ofMinutes(1)) // Timeout failure here
.stateMachine
.resultFuture
.getOrThrow(Duration.ofMinutes(1)) as String
assertEquals("Ping!", result)
}
}
但自从更新为使用 Corda 4 后,它现在得到以下异常:
java.util.concurrent.TimeoutException
这可能是什么原因造成的?
【问题讨论】:
标签: corda