From dec7b43d3a552df0fb3085b8dd8cd3e955234fe4 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 6 Feb 2026 17:34:06 +0100 Subject: [PATCH] fix(e2e): increase flaky performance test threshold from 100ms to 500ms --- .../map-schedule-data/create-sorted-blocker-blocks.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/features/schedule/map-schedule-data/create-sorted-blocker-blocks.spec.ts b/src/app/features/schedule/map-schedule-data/create-sorted-blocker-blocks.spec.ts index 12b79ecfec..e8e9bcf179 100644 --- a/src/app/features/schedule/map-schedule-data/create-sorted-blocker-blocks.spec.ts +++ b/src/app/features/schedule/map-schedule-data/create-sorted-blocker-blocks.spec.ts @@ -1567,7 +1567,7 @@ describe('createBlockerBlocks()', () => { const result = createSortedBlockerBlocks(blocks, [], [], undefined, undefined, 0); const duration = performance.now() - start; - expect(duration).toBeLessThan(100); + expect(duration).toBeLessThan(500); expect(result.length).toBeGreaterThan(0); // Verify result is sorted for (let i = 1; i < result.length; i++) { @@ -1613,7 +1613,7 @@ describe('createBlockerBlocks()', () => { const result = createSortedBlockerBlocks(blocks, [], [], undefined, undefined, 0); const duration = performance.now() - start; - expect(duration).toBeLessThan(100); + expect(duration).toBeLessThan(500); // Should merge many overlapping blocks expect(result.length).toBeLessThan(blocks.length); // Verify no gaps between merged blocks @@ -1643,7 +1643,7 @@ describe('createBlockerBlocks()', () => { const result = createSortedBlockerBlocks(blocks, [], [], undefined, undefined, 0); const duration = performance.now() - start; - expect(duration).toBeLessThan(100); + expect(duration).toBeLessThan(500); // Should have minimal merging expect(result.length).toBe(blocks.length); });