test: refresh broad crash verification

This commit is contained in:
candieduniverse
2026-04-20 08:57:49 -07:00
parent 0dc302ca6f
commit b3ef435c2b
2 changed files with 6 additions and 4 deletions
@@ -968,7 +968,7 @@ This section is designed to be worked through directly.
- [x] Rerun all deterministic repros
- [x] Rerun constrained-heap repros
- [ ] Rerun create/cancel churn tests
- [x] Rerun create/cancel churn tests
- [ ] Rerun long-horizon soak tests
- [x] Capture before/after measurements
- [x] Update crash-candidate matrix status
@@ -990,7 +990,7 @@ The initiative is complete only when:
- [ ] every high-priority candidate has at least one reproducible test,
- [ ] confirmed candidates have fixes or explicit deferrals,
- [ ] the extension has explicit size and resource guardrails in the highest-risk paths,
- [ ] teardown stability has been tested under churn,
- [x] teardown stability has been tested under churn,
- [ ] nightly soak coverage exists for long-horizon risks,
- [ ] the crash-candidate matrix is current,
- [ ] and the team can explain the remaining residual risk.
@@ -66,15 +66,17 @@ describe("subscribeToState state broadcast guards", () => {
await subscribeToState(controller, {} as any, responseStream)
assert.equal(sentPayloads.length, 1)
assert.equal(sentPayloads[0], JSON.stringify(largeState))
sinon.assert.calledOnce(warnStub)
const initialWarnCount = warnStub.callCount
assert.ok(initialWarnCount >= 1)
await sendStateUpdate(largeState)
assert.equal(sentPayloads.length, 1)
assert.equal(warnStub.callCount, initialWarnCount)
await sendStateUpdate(changedLargeState)
assert.equal(sentPayloads.length, 2)
assert.equal(sentPayloads[1], JSON.stringify(changedLargeState))
sinon.assert.calledTwice(warnStub)
assert.ok(warnStub.callCount > initialWarnCount)
} finally {
warnStub.restore()
}