mirror of
https://github.com/rustfs/rustfs.git
synced 2026-10-27 06:18:43 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user