From 2ee056749cf003abe080f4b78ebb4246f24ea054 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sun, 27 Sep 2026 11:57:56 +0200 Subject: [PATCH] test: give the big meeting tests time on a busy machine #34 The planner tests that build meetings of 25 attendees on 52 overrides take 0.3-1.8 s alone, but one of them passed the default 5 s limit in a full run next to a release build. The two slowest tests of the file already had 60 s; the other heavy ones get the same. --- src/device-sync/__tests__/calendar/big-events.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device-sync/__tests__/calendar/big-events.test.ts b/src/device-sync/__tests__/calendar/big-events.test.ts index 6075134c..267ddbf6 100644 --- a/src/device-sync/__tests__/calendar/big-events.test.ts +++ b/src/device-sync/__tests__/calendar/big-events.test.ts @@ -98,7 +98,7 @@ describe('calendar planner: big meetings', () => { const clean = calendarPlanner.planUpload((await h.local('big'))!, h.ctx); expect(clean.kind).toBe('clean'); if (clean.kind === 'clean') expect(estimate(clean.ops)).toBeLessThan(TRANSACTION); - }); + }, 60_000); it('still fails a write when an app changed a clean occurrence\'s attendees meanwhile', async () => { const event = meeting(3, 4); @@ -134,7 +134,7 @@ describe('calendar planner: big meetings', () => { expect(local.exceptions.every((x) => x.attendees.length === attendees + 1 && !x.dirty)).toBe(true); // Its echo writes nothing. expect(calendarPlanner.planDownload(event, local, h.ctx).effect).toBe('none'); - }); + }, 60_000); it('finishes a first download cut off between its groups, without writing a row twice', async () => { const event = meeting(25, 52); @@ -182,7 +182,7 @@ describe('calendar planner: big meetings', () => { expect(local.shadow).toEqual(changed); expect(local.exceptions.every((x) => x.attendees.length === 27)).toBe(true); expect(calendarPlanner.planDownload(changed, local, h.ctx).effect).toBe('none'); - }); + }, 60_000); }); describe('device sync engine: big meetings', () => { @@ -201,7 +201,7 @@ describe('device sync engine: big meetings', () => { const before = h.batches.log.length; expect((await h.run(CALENDAR_AUTHORITY)).outcome).toBe('ok'); expect(rowWrites(h.batches.log.slice(before))).toEqual([]); - }); + }, 60_000); it('finishes a big meeting cut off between its groups by a crash, without duplicating rows', async () => { const setup = () => {