Skip to content

Commit 06419bd

Browse files
jahoomaclaude
andcommitted
Fix admission tick tests for per-model admission
The admission tick now iterates per registered model, so tests that asserted admitted: 1 received 2 (one per model). Default the test helper to a single model so the existing assertions stay crisp and won't drift as more production models are added. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 10cb270 commit 06419bd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

web/src/server/free-session/__tests__/admission.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ function makeAdmissionDeps(overrides: Partial<AdmissionDeps> = {}): AdmissionDep
2828
sessionLengthMs: 60 * 60 * 1000,
2929
graceMs: 30 * 60 * 1000,
3030
now: () => NOW,
31+
// Default to a single model so per-tick assertions (admitted: 1) stay
32+
// crisp regardless of how many production models are registered.
33+
models: ['test-model'],
3134
...overrides,
3235
}
3336
return deps

0 commit comments

Comments
 (0)