Skip to content

fix(monitor): add checkDeadSessions forwarding method for backward compat#4399

Open
OneStepAt4time wants to merge 1 commit into
refactor/monitor-splitfrom
fix/4392-dead-session-forwarding
Open

fix(monitor): add checkDeadSessions forwarding method for backward compat#4399
OneStepAt4time wants to merge 1 commit into
refactor/monitor-splitfrom
fix/4392-dead-session-forwarding

Conversation

@OneStepAt4time
Copy link
Copy Markdown
Owner

Problem

PR #4392 moved checkDeadSessions() from SessionMonitor to the DeadDetector sub-component. But 46 existing tests in dead-session.test.ts still call (monitor as any).checkDeadSessions(), causing 28 test failures in CI on both Node 20 and Node 22.

Fix

Add a forwarding method on SessionMonitor that delegates to this.deadDetector.checkDeadSessions(), matching the existing forwarding pattern (stallHas, stallAdd, stallDeleteAll, etc.).

Also updated poll() to call this.checkDeadSessions() instead of this.deadDetector.checkDeadSessions() for consistency.

Verification

  • dead-session.test.ts: 46/46 ✅ (was 28 failed)
  • dead-detector.test.ts: 8/8 ✅
  • monitor.test.ts: 46/46 ✅
  • session.test.ts: 47/47 ✅

This should unblock PR #4392 CI.

…mpat

The monitor refactor moved checkDeadSessions to DeadDetector sub-component,
but existing tests still call (monitor as any).checkDeadSessions(). This
causes 28 test failures because the method no longer exists on SessionMonitor.

Add a forwarding method that delegates to this.deadDetector.checkDeadSessions()
and update poll() to use it consistently, matching the existing forwarding
pattern (stallHas, stallAdd, etc.).

Fixes test failures in PR #4392.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant