Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix client state test cleanup #1864

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion node-metrics/src/service/client_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ pub mod tests {
let (internal_client_message_sender, internal_client_message_receiver) = mpsc::channel(1);
let (server_message_sender_1, mut server_message_receiver_1) = mpsc::channel(1);
let (server_message_sender_2, mut server_message_receiver_2) = mpsc::channel(1);
let _process_internal_client_message_handle = InternalClientMessageProcessingTask::new(
let mut process_internal_client_message_handle = InternalClientMessageProcessingTask::new(
internal_client_message_receiver,
data_state,
client_thread_state,
Expand Down Expand Up @@ -1359,6 +1359,10 @@ pub mod tests {
voters_1, voters_2
]))),
);

if let Some(task_handle) = process_internal_client_message_handle.task_handle.take() {
assert_eq!(task_handle.cancel().await, None);
}
}

#[async_std::test]
Expand Down
Loading