Skip to content

Commit d5f86b2

Browse files
committed
chore(tests): rename stale 'cancellation check interval' test after polling removal
1 parent 50283c0 commit d5f86b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/executor/execution/engine.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ describe('ExecutionEngine', () => {
451451
expect(nodeOrchestrator.executionCount).toBe(0)
452452
})
453453

454-
it('should respect cancellation check interval', async () => {
454+
it('calls isExecutionCancelled once as the startup backstop check', async () => {
455455
;(isRedisCancellationEnabled as Mock).mockReturnValue(true)
456456
;(isExecutionCancelled as Mock).mockResolvedValue(false)
457457

@@ -464,7 +464,7 @@ describe('ExecutionEngine', () => {
464464
const engine = new ExecutionEngine(context, dag, edgeManager, nodeOrchestrator)
465465
await engine.run('start')
466466

467-
expect((isExecutionCancelled as Mock).mock.calls.length).toBeGreaterThanOrEqual(1)
467+
expect((isExecutionCancelled as Mock).mock.calls.length).toBe(1)
468468
})
469469
})
470470

0 commit comments

Comments
 (0)