CORDA-2827 extend timeout on test (#4984)

This commit is contained in:
Dominic Fox 2019-04-05 08:08:29 +01:00 committed by Rick Parker
parent 5314ccf33f
commit 1f6a4a0cba

View File

@ -101,7 +101,7 @@ class RetryFlowMockTest {
})
val count = 10000 // Lots of iterations so the flow keeps going long enough
nodeA.startFlow(KeepSendingFlow(count, partyB))
eventually(waitBetween = Duration.ofMillis(10)) {
eventually(duration = Duration.ofSeconds(30), waitBetween = Duration.ofMillis(100)) {
assertTrue(messagesSent.isNotEmpty())
assertNotNull(messagesSent.first().senderUUID)
}
@ -115,7 +115,7 @@ class RetryFlowMockTest {
})
// Now short circuit the iterations so the flow finishes soon.
KeepSendingFlow.count.set(count - 2)
eventually(waitBetween = Duration.ofMillis(10)) {
eventually(duration = Duration.ofSeconds(30), waitBetween = Duration.ofMillis(100)) {
assertTrue(nodeA.smm.allStateMachines.isEmpty())
}
assertNull(messagesSent.last().senderUUID)