diff --git a/node/src/integration-test/kotlin/net/corda/node/flows/FlowSessionCloseTest.kt b/node/src/integration-test/kotlin/net/corda/node/flows/FlowSessionCloseTest.kt index b7abe4249f..d1825cd142 100644 --- a/node/src/integration-test/kotlin/net/corda/node/flows/FlowSessionCloseTest.kt +++ b/node/src/integration-test/kotlin/net/corda/node/flows/FlowSessionCloseTest.kt @@ -185,7 +185,9 @@ class FlowSessionCloseTest { } session.send(responderReaction) - sleep(1.seconds) + + // Give time to the other flow to receive the message, close its session and send the end session message back + sleep(5.seconds) if (accessClosedSessionWithApi != null) { when(accessClosedSessionWithApi) { @@ -291,4 +293,4 @@ class FlowSessionCloseTest { } } -} \ No newline at end of file +}