From e8df22fe06d6d08aca03c94b48e6a77ceeea0073 Mon Sep 17 00:00:00 2001 From: agent-pool-9 Date: Sat, 17 Oct 2026 07:23:30 +0000 Subject: [PATCH] host tests: reuse the existing drain helper --- cli/tests/host.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cli/tests/host.rs b/cli/tests/host.rs index 296b92f..605b5be 100644 --- a/cli/tests/host.rs +++ b/cli/tests/host.rs @@ -1000,15 +1000,6 @@ async fn ask_until( .unwrap_or_else(|_| panic!("{actor} never gave the wanted answer")) } -/// Every message that arrives until the mailbox is quiet for `quiet`. -async fn drain(mailbox: &mut mpsc::Receiver, quiet: Duration) -> Vec { - let mut messages = Vec::new(); - while let Ok(Some(message)) = tokio::time::timeout(quiet, mailbox.recv()).await { - messages.push(message); - } - messages -} - /// The `fs_changed` bodies among `messages` (all from `fs`). fn fs_events(messages: Vec) -> Vec { messages