CORDA-3986 Increase sleep in FlowSessionCloseTest (#6629)

* CORDA-3986 Increase sleep in `FlowSessionCloseTest`

A sleep duration needed to be increased to ensure that an end session
message has time to be processed by the other node.

Locks do not fully fix this because some internal processing needs to be
completed that can't be waited for using a lock. Therefore the sleep
time was increased generously.
This commit is contained in:
Dan Newton 2020-08-14 10:57:24 +01:00 committed by GitHub
parent 205ce84033
commit 1cbfb74022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {
}
}
}
}