fix: isolate anonymous rollout rate limits
This commit is contained in:
@@ -24,8 +24,8 @@ test('Gitea workflow keeps source checks separate and holds unverified container
|
||||
});
|
||||
|
||||
test('Authenticated route limits remain user-keyed after rollout gates', () => {
|
||||
expect(chatRoute).toContain('chat:${current?.userId ?? event.getClientAddress()}');
|
||||
expect(syncRoute).toContain('sync:${current?.userId ?? event.getClientAddress()}');
|
||||
expect(chatRoute).toContain('chat:${current.userId}');
|
||||
expect(syncRoute).toContain('sync:${current.userId}');
|
||||
expect(chatRoute.indexOf('protectMutation')).toBeLessThan(chatRoute.indexOf('const current = await session(event)'));
|
||||
expect(syncRoute.indexOf('protectMutation')).toBeLessThan(syncRoute.indexOf('const current = await session(event)'));
|
||||
expect(chatRoute.indexOf("capabilityEnabled('assistant_dispatch'")).toBeLessThan(chatRoute.indexOf('const current = await session(event)'));
|
||||
|
||||
Reference in New Issue
Block a user