mirror of
https://github.com/corda/corda.git
synced 2025-05-31 22:50:53 +00:00
Fix and or suppress detekt warnings
This commit is contained in:
parent
119f939ee1
commit
5b9c5a6b83
@ -121,7 +121,8 @@ class FlowFrameworkTests {
|
|||||||
val flow = ReceiveFlow(bob)
|
val flow = ReceiveFlow(bob)
|
||||||
val fiber = aliceNode.services.startFlow(flow) as FlowStateMachineImpl
|
val fiber = aliceNode.services.startFlow(flow) as FlowStateMachineImpl
|
||||||
// Before the flow runs change the suspend action to throw an exception
|
// Before the flow runs change the suspend action to throw an exception
|
||||||
val throwingActionExecutor = SuspendThrowingActionExecutor(Exception("Thrown during suspend"), fiber.transientValues!!.value.actionExecutor)
|
val throwingActionExecutor = SuspendThrowingActionExecutor(Exception("Thrown during suspend"),
|
||||||
|
fiber.transientValues!!.value.actionExecutor)
|
||||||
fiber.transientValues = TransientReference(fiber.transientValues!!.value.copy(actionExecutor = throwingActionExecutor))
|
fiber.transientValues = TransientReference(fiber.transientValues!!.value.copy(actionExecutor = throwingActionExecutor))
|
||||||
mockNet.runNetwork()
|
mockNet.runNetwork()
|
||||||
fiber.resultFuture.getOrThrow()
|
fiber.resultFuture.getOrThrow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user