mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user