Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

test(backend): the integration test expects no hourly route cap (#1815) (#1823)

0xken15b8c4d0326f52
diff --git a/backend/integration/superTabs.test.ts b/backend/integration/superTabs.test.ts
index b644314e0..7465d7dd8 100644
--- a/backend/integration/superTabs.test.ts
+++ b/backend/integration/superTabs.test.ts
@@ -1951,13 +1951,13 @@ describe('Super Tabs on a real Mongo replica set', () => {
expect(await store.routeDecision(owner, tab, id)).toMatchObject({ outcome: 'done', assignmentId: second })
})
- it('limits route records to 30 per tab per hour', async () => {
+ it('records more than 30 routes in an hour: there is no hourly cap', async () => {
const { tab, lead } = await fixture()
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Docs.' },
candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'haiku', effort: 'auto', quality: 1, cost: 1, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
for (let i = 0; i < 30; i++) await run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)
- await expect(run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)).rejects.toMatchObject({ code: 'RATE_LIMITED', status: 429 })
+ await expect(run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)).resolves.toBeDefined()
})
})