diff --git a/shared/packages/expectationManager/src/evaluationRunner/evaluateExpectationStates/fulfilled.ts b/shared/packages/expectationManager/src/evaluationRunner/evaluateExpectationStates/fulfilled.ts index 98da7944..2008f750 100644 --- a/shared/packages/expectationManager/src/evaluationRunner/evaluateExpectationStates/fulfilled.ts +++ b/shared/packages/expectationManager/src/evaluationRunner/evaluateExpectationStates/fulfilled.ts @@ -69,6 +69,9 @@ export async function evaluateExpectationStateFulfilled({ // Yes it is still fullfiled // No need to update the tracked state, since it's already fulfilled: // this.updateTrackedExp(trackedExp, WorkStatusState.FULFILLED, fulfilled.reason) + + // Update lastEvaluationTime, so that we wait a bit longer before checking again (using tracker.getFulfilledWaitTime()): + trackedExp.lastEvaluationTime = Date.now() } } catch (error) { runner.logger.warn(`Error in FULFILLED: exp "${trackedExp.id}": ${stringifyError(error)}`)