mirror of
https://github.com/corda/corda.git
synced 2024-12-22 06:17:55 +00:00
Use startFlowAndRunNetwork
This commit is contained in:
parent
201628e44f
commit
0780d6051e
@ -59,7 +59,7 @@ class ReceiveMultipleFlowTests : WithMockNet {
|
||||
}
|
||||
|
||||
assert.that(
|
||||
nodes[0].startFlow(initiatingFlow).andRunNetwork(),
|
||||
nodes[0].startFlowAndRunNetwork(initiatingFlow),
|
||||
succeedsWith(isA(equalTo(answer))))
|
||||
}
|
||||
|
||||
@ -71,8 +71,7 @@ class ReceiveMultipleFlowTests : WithMockNet {
|
||||
nodes[2].registerAnswer(AlgorithmDefinition::class, stringValue)
|
||||
|
||||
assert.that(
|
||||
nodes[0].startFlow(ParallelAlgorithmMap(nodes[1].info.singleIdentity(), nodes[2].info.singleIdentity()))
|
||||
.andRunNetwork(),
|
||||
nodes[0].startFlowAndRunNetwork(ParallelAlgorithmMap(nodes[1].info.singleIdentity(), nodes[2].info.singleIdentity())),
|
||||
succeedsWith(equalTo(doubleValue * stringValue.length)))
|
||||
}
|
||||
|
||||
@ -84,8 +83,7 @@ class ReceiveMultipleFlowTests : WithMockNet {
|
||||
nodes[2].registerAnswer(ParallelAlgorithmList::class, value2)
|
||||
|
||||
assert.that(
|
||||
nodes[0].startFlow(ParallelAlgorithmList(nodes[1].info.singleIdentity(), nodes[2].info.singleIdentity()))
|
||||
.andRunNetwork(),
|
||||
nodes[0].startFlowAndRunNetwork(ParallelAlgorithmList(nodes[1].info.singleIdentity(), nodes[2].info.singleIdentity())),
|
||||
succeedsWith(equalTo(listOf(value1, value2))))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user