Skip to content

Commit 33fe64c

Browse files
authored
fix(test): drop client to avoid potential locks (#6642)
1 parent 3846eb2 commit 33fe64c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rpc/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,9 @@ mod tests {
894894
.unwrap();
895895
assert_eq!(response, jwt_read_permissions);
896896

897+
// Explicitly drop the WebSocket client to close the connection
898+
drop(client);
899+
897900
// Gracefully shutdown the RPC server
898901
shutdown_send.send(()).await.unwrap();
899902
shutdown_recv.recv().await;

0 commit comments

Comments
 (0)