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
This commit is contained in:
Chris
2026-10-14 08:22:12 -07:00
committed by GitHub
parent 9408b90f13
commit 802ac8a1bd
@@ -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::<Vec<_>>();
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