From cf595fc1d56f71497147d381672811cf663e4c99 Mon Sep 17 00:00:00 2001 From: HAL9000 Date: Mon, 27 Apr 2026 19:10:34 +0000 Subject: [PATCH] fix(tests): assert LSP server released after deactivation in lsp_actor_service_steps --- features/steps/lsp_actor_service_steps.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/steps/lsp_actor_service_steps.py b/features/steps/lsp_actor_service_steps.py index 286ded742..79cc69afc 100644 --- a/features/steps/lsp_actor_service_steps.py +++ b/features/steps/lsp_actor_service_steps.py @@ -210,7 +210,10 @@ def step_lsp_server_released(context: Any, server_name: str) -> None: # (or at least the reference count should be decremented) # This is a simplified check; in reality, the server might still be running # if other actors reference it - pass + # The lifecycle manager exposes a health_check method to verify server state + assert not context.service.runtime.lifecycle.health_check( + server_name + ), f"Server {server_name} was not released after deactivation" @then("the activation completes with warnings")