chore(test): expect the lease-id refusal when shutdown omits the lease id

Merged
TH
5d ago
+13-3

Summary

#4911 and #4917 merged into 0.22 35 seconds apart. #4911 refuses any request to a leased session that omits its lease id with UNAUTHORIZED / LEASE_SESSION_MISMATCH, before any handler runs. #4917 added a shutdown test whose "omitting" case still expected a DEVICE_IN_USE response. That case now throws, so Coverage fails on 0.22 (f409db1f2a) and on every PR against it.

The omitting case now expects the #4911 refusal and checks it does not name the session. The sending case is unchanged.

Validation

  • npx vitest run packages/daemon/src/sessions/handlers/__tests__/session-shutdown.test.ts: 7 passed.
  • Same failure seen in Coverage on 0.22 (job 137128314290) and on #4846.

Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.