Fix and or suppress detekt warnings

This commit is contained in:
Christian Sailer 2019-10-28 15:11:59 +00:00 committed by LankyDan
parent 119f939ee1
commit 5b9c5a6b83

View File

@ -121,7 +121,8 @@ class FlowFrameworkTests {
val flow = ReceiveFlow(bob)
val fiber = aliceNode.services.startFlow(flow) as FlowStateMachineImpl
// 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))
mockNet.runNetwork()
fiber.resultFuture.getOrThrow()