From ce96a30c8278419c534169273a99c18d42b4e08e Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Mon, 23 Feb 2026 19:10:17 +0100 Subject: [PATCH] fix(test): drop client to avoid potential locks --- src/rpc/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rpc/mod.rs b/src/rpc/mod.rs index 75efa377d0ef..e2d8af1bf20c 100644 --- a/src/rpc/mod.rs +++ b/src/rpc/mod.rs @@ -893,6 +893,9 @@ mod tests { .unwrap(); assert_eq!(response, jwt_read_permissions); + // Explicitly drop the WebSocket client to close the connection + drop(client); + // Gracefully shutdown the RPC server shutdown_send.send(()).await.unwrap(); shutdown_recv.recv().await;