Skip to content

Commit 4fe15f4

Browse files
anandgupta42claude
andcommitted
fix: update TRAINING_MAX_PATTERNS_PER_KIND test to match new limit of 50
The PR increased the limit from 20 to 50 for enterprise teams, but the test still asserted `toBe(20)`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b6fc57f commit 4fe15f4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/opencode/test/training/tools.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,11 @@ describe("training meta roundtrip through content", () => {
141141

142142
describe("TRAINING_MAX_PATTERNS_PER_KIND", () => {
143143
test("is a reasonable limit", () => {
144-
expect(TRAINING_MAX_PATTERNS_PER_KIND).toBe(20)
144+
// altimate_change start — limit increased from 20 to 50 for enterprise teams
145+
expect(TRAINING_MAX_PATTERNS_PER_KIND).toBe(50)
145146
expect(TRAINING_MAX_PATTERNS_PER_KIND).toBeGreaterThan(0)
146-
expect(TRAINING_MAX_PATTERNS_PER_KIND).toBeLessThanOrEqual(50)
147+
expect(TRAINING_MAX_PATTERNS_PER_KIND).toBeLessThanOrEqual(100)
148+
// altimate_change end
147149
})
148150
})
149151

0 commit comments

Comments
 (0)