Merge pull request #7743 from corda/adel/ENT-11113

ENT-11113: Increase timeout from 5 secs in scheduler test, see if sol…
This commit is contained in:
Adel El-Beik 2024-06-06 17:56:30 +01:00 committed by GitHub
commit a542aa55e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ open class NodeSchedulerServiceTestBase {
protected fun assertStarted(flowLogic: FlowLogic<*>) {
// Like in assertWaitingFor, use timeout to make verify wait as we often race the call to startFlow:
verify(flowStarter, timeout(5000)).startFlow(argForWhich<ExternalEvent.ExternalStartFlowEvent<*>> { this.flowLogic == flowLogic })
verify(flowStarter, timeout(120000)).startFlow(argForWhich<ExternalEvent.ExternalStartFlowEvent<*>> { this.flowLogic == flowLogic })
}
protected fun assertStarted(event: Event) = assertStarted(event.flowLogic)