Commit 1f13b35
committed
test(state): force the grace-boundary ages in the moved lock property
The moved property is named for the grace boundary but drew ageMs and graceMs
as two independent durations, so ageMs === graceMs was almost never sampled and
the >= boundary went untested. Relaxing the classifier from >= to > at
mcp-lifecycle-lock-identity.ts:210 still passed 15/15 before this change.
Test ages graceMs - 1, graceMs, and graceMs + 1 alongside the random age, which
keeps the broad coverage the random draw gave. The >= mutation now fails.
Reported by CodeRabbit on #8436.
Refs: #8356
Signed-off-by: harjoth <harjoth.khara@gmail.com>1 parent 7e586eb commit 1f13b35
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
| |||
0 commit comments