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.
This commit is contained in:
Linus Rath
2026-09-27 11:57:56 +02:00
parent 10edc331a5
commit 2ee056749c
@@ -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 = () => {