Skip to content

Commit 4f6c2d3

Browse files
authored
fix(knowledge): shrink the member lifecycle budget tests so they stop timing out in CI (#8404)
1 parent b08cd5f commit 4f6c2d3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎apps/sim/lib/knowledge/__integration__/member-document-lifecycle.integration.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ import {
4242
stillHoldsMemberSyncLock,
4343
} from '@/lib/knowledge/connectors/sync-lock'
4444

45+
/**
46+
* A three-page budget keeps the budget-boundary tests near two thousand documents; the production
47+
* budget made them seed over ten thousand and run past the timeout on slower CI Postgres.
48+
*/
49+
vi.mock('@/lib/knowledge/connectors/sync-limits', async (importOriginal) => ({
50+
...(await importOriginal<Record<string, unknown>>()),
51+
MEMBER_TOMBSTONE_RECONCILE_PAGES_PER_RUN: 3,
52+
}))
53+
4554
describe('member document lifecycle in PostgreSQL', () => {
4655
let ids: ReturnType<typeof createKnowledgeAclFixtureIds>
4756
let members: Awaited<ReturnType<typeof seedKnowledgeMemberFixture>>

0 commit comments

Comments
 (0)