From 802ac8a1bd77b74b3a2ed475aceb7cece088abfb Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 14 Oct 2026 08:22:12 -0700 Subject: [PATCH] test(heal): avoid needless collect in legacy root recovery test (1.0.2 backport) (#8551) test(heal): avoid needless collect in legacy root recovery test --- crates/heal/src/heal/manager/tests/root_recovery.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/heal/src/heal/manager/tests/root_recovery.rs b/crates/heal/src/heal/manager/tests/root_recovery.rs index 7702a89d2..669893b1a 100644 --- a/crates/heal/src/heal/manager/tests/root_recovery.rs +++ b/crates/heal/src/heal/manager/tests/root_recovery.rs @@ -1873,8 +1873,10 @@ async fn root_recovery_legacy_cluster_requires_a_fresh_generation_bound_task() { let restarted = recovery_manager(vec![disk]); restarted.replay_root_heals().await.expect("replay legacy root record"); - let queued = restarted.heal_queue.lock().await.requests().cloned().collect::>(); - assert!(queued.is_empty(), "unfenced legacy work must not bind to a later bucket generation"); + assert!( + restarted.heal_queue.lock().await.requests().next().is_none(), + "unfenced legacy work must not bind to a later bucket generation" + ); assert!( restarted .root_recovery