Corda集成测试永远不会完成

时间:2019-08-30 18:32:08

标签: corda

到达下一行后,测试似乎无休止地流失。

partyBHandle.rpc.startFlow(::MyIssueFlow, state).returnValue.getOrThrow()

看到很多控制台输出,效果如下:

13:28:41.930 [InProcessNode-3-2] DEBUG net.corda.node.services.network.NodeInfoWatcher - Number of removed NodeInfo files 0
13:28:43.862 [InProcessNode-1-2] DEBUG net.corda.node.services.network.NodeInfoWatcher - Read 0 NodeInfo files from NotaryService\additional-node-infos
13:28:43.862 [InProcessNode-1-2] DEBUG net.corda.node.services.network.NodeInfoWatcher - Number of removed NodeInfo files 0
13:28:45.828 [InProcessNode-2-2] DEBUG net.corda.node.services.network.NodeInfoWatcher - Read 0 NodeInfo files from BankA\additional-node-infos
13:28:45.828 [InProcessNode-2-2] DEBUG net.corda.node.services.network.NodeInfoWatcher - Number of removed NodeInfo files 0

我知道该流程是有效的,因为使用MockNetwork进行的常规Flow测试已成功完成。在这种情况下,我想使用集成测试,以便可以测试一些客户端API方法。

1 个答案:

答案 0 :(得分:0)

当尝试手动启动节点时,我意识到了这个问题。启动节点时出现错误,而通过集成测试启动节点时未显示错误。在我的情况下,我的cordapp中缺少一个广口瓶。