Repository navigation
Commit b16a2c5
test(customization): calibrate the one assertion made of wall clock
The chain case asserts two things, and only one of them was pinned. WHERE
the bound stops is already deterministic a case above — 998 links
admitted, 999 refused, one apart. What the clock adds is that the walk
bails rather than finishing and reporting, which no return value
distinguishes.
So the threshold is measured rather than chosen: 21 ms bounded on this
document, 61 ms on the first call because of JIT, against the 6.7 s the
unbounded walk took. Two seconds sits about thirty times above the one
and three below the other.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 83d3398 commit b16a2c5
1 file changed
Lines changed: 12 additions & 1 deletion
File tree
- backend/tests/LearnStack.Tests.Unit/Infrastructure/Validation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
296 | 306 | | |
297 | 307 | | |
298 | 308 | | |
| |||
304 | 314 | | |
305 | 315 | | |
306 | 316 | | |
307 | | - | |
| 317 | + | |
| 318 | + | |
308 | 319 | | |
309 | 320 | | |
310 | 321 | | |
| |||
0 commit comments