mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 05:29:44 +02:00
test(cli): Remove clock race from flaky scheduled-task re-claim test (#36031)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
6f2033f0e1
commit
729c9b46e3
|
|
@ -461,6 +461,7 @@ describe('ScheduledTaskRepository executor methods', () => {
|
|||
it('bumps the epoch again on re-claim after a reschedule', async () => {
|
||||
const { id, epoch } = await claimOne();
|
||||
await taskRepository.rescheduleTask({ host: HOST_A, id, claimedEpoch: epoch }, 0, 'retry');
|
||||
await taskRepository.update(id, { runAt: past() });
|
||||
|
||||
const [reclaimed] = await taskRepository.claimDueTasks(claimOpts({ host: HOST_B }));
|
||||
expect(reclaimed.id).toBe(id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user