From eed1e97967d906b48f1d21c1facfe5c92a03d662 Mon Sep 17 00:00:00 2001 From: Zhengchao An Date: Tue, 21 Jul 2026 21:02:25 +0800 Subject: [PATCH] fix: update cluster snapshot test for peer health local node semantics (#5089) The peer health snapshot now reports CapabilityState::Supported for local nodes (no probing needed), but the cluster_snapshot test still expected Unknown. Update the assertion to match the new behavior introduced in commit 7805cf5ae. --- rustfs/src/cluster_snapshot.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rustfs/src/cluster_snapshot.rs b/rustfs/src/cluster_snapshot.rs index 0cae00cf5..718060b09 100644 --- a/rustfs/src/cluster_snapshot.rs +++ b/rustfs/src/cluster_snapshot.rs @@ -181,7 +181,8 @@ mod tests { snapshot.runtime_status.degraded_reasons, vec![ReadinessDegradedReason::StorageAndLockUnavailable] ); - assert_eq!(snapshot.peer_health.peers[0].status.state, CapabilityState::Unknown); + // Local node (peers[0]) is supported — no peer health probing needed. + assert_eq!(snapshot.peer_health.peers[0].status.state, CapabilityState::Supported); if cfg!(target_os = "linux") { assert_eq!(snapshot.observability.platform.numa.state, CapabilityState::Unknown); } else {