From bdbc6d02ad1e58f7d1ca2c6f6f47b84836720ce0 Mon Sep 17 00:00:00 2001 From: juancarmore Date: Sun, 23 Nov 2025 17:46:15 +0100 Subject: [PATCH] test: update orphaned lock age in garbage collector tests for accuracy --- .../api/recordings/orphaned-locks-collector.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meet-ce/backend/tests/integration/api/recordings/orphaned-locks-collector.test.ts b/meet-ce/backend/tests/integration/api/recordings/orphaned-locks-collector.test.ts index 29e72b6d..b7809f5f 100644 --- a/meet-ce/backend/tests/integration/api/recordings/orphaned-locks-collector.test.ts +++ b/meet-ce/backend/tests/integration/api/recordings/orphaned-locks-collector.test.ts @@ -199,8 +199,8 @@ describe('Recording Garbage Collector Tests', () => { // Simulate lock exists (mutexService.lockExists as jest.Mock).mockResolvedValueOnce(true as never); - // Simulate lock is recent (30 seconds old) - (mutexService.getLockCreatedAt as jest.Mock).mockResolvedValueOnce((Date.now() - 30000) as never); + // Simulate lock is recent (20 seconds old) + (mutexService.getLockCreatedAt as jest.Mock).mockResolvedValueOnce((Date.now() - 20000) as never); // Execute evaluateAndReleaseOrphanedLock await recordingService['evaluateAndReleaseOrphanedLock'](testRooms.recentLock, 'prefix_');