Skip to content

Commit 6fa121e

Browse files
committed
fix: increase keyword-trie perf test threshold for CI stability
The benchmark test asserted <200ms but CI runners occasionally exceed this by a small margin (211ms observed). Bump to 500ms to prevent flaky failures while still catching real regressions.
1 parent 69653d2 commit 6fa121e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/backend/src/routing/scorer/__tests__/keyword-trie.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ describe('KeywordTrie', () => {
172172
expect(trie.scan('can you (prove) this?')).toHaveLength(1);
173173
});
174174

175-
it('scans 1000 texts of 500 chars in under 200ms', () => {
175+
it('scans 1000 texts of 500 chars in under 500ms', () => {
176176
const trie = new KeywordTrie([
177177
{ name: 'a', keywords: ['algorithm', 'database', 'architecture'] },
178178
{ name: 'b', keywords: ['prove', 'theorem', 'induction'] },
@@ -189,6 +189,6 @@ describe('KeywordTrie', () => {
189189
trie.scan(text);
190190
}
191191
const elapsed = performance.now() - start;
192-
expect(elapsed).toBeLessThan(200);
192+
expect(elapsed).toBeLessThan(500);
193193
});
194194
});

0 commit comments

Comments
 (0)