Skip to content

Close the liveness test subscription on failure - #150

Merged
huangminghuang merged 1 commit into
masterfrom
fix/debugging-client-liveness-cleanup
Nov 6, 2026
Merged

huangminghuang merged 1 commit into
masterfrom
fix/debugging-client-liveness-cleanup

Conversation

@huangminghuang

Copy link
Copy Markdown
Contributor

Summary

  • Close the process-liveness test subscription in a finally block.
  • Preserve the existing event-driven discovery assertion and polling deadline.

Why

The test previously closed its subscription only after the event wait completed successfully. The finally block also closes it if writing the PID fixture, the event wait, or the assertion throws. Existing suite teardown still handles client disconnection.

This test-only cleanup is separated from Tools #97 as requested in review. It can be reviewed and merged independently of the operator lifecycle flows.

Validation

  • LocalFileDebuggingClient.test.ts: all 14 tests passed on the current master-based branch, including process-liveness discovery.

@huangminghuang
huangminghuang merged commit 47375e3 into master Nov 6, 2026
2 checks passed
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.

2 participants