mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +00:00
CORDA-2827 extend timeout on test (#4984)
This commit is contained in:
parent
5314ccf33f
commit
1f6a4a0cba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user