ENT-11113: Increase timeout from 5 secs in scheduler test, see if solves intermittent failure on Jenkins.

This commit is contained in:
Adel El-Beik 2024-06-05 16:25:34 +01:00
parent 78bc8e3383
commit 1866a02cf3

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)