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:
Zhengchao An
2026-07-21 21:02:25 +08:00
committed by GitHub
parent 97b618bc2b
commit eed1e97967
+2 -1
View File
@@ -181,7 +181,8 @@ mod tests {
snapshot.runtime_status.degraded_reasons, snapshot.runtime_status.degraded_reasons,
vec![ReadinessDegradedReason::StorageAndLockUnavailable] 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") { if cfg!(target_os = "linux") {
assert_eq!(snapshot.observability.platform.numa.state, CapabilityState::Unknown); assert_eq!(snapshot.observability.platform.numa.state, CapabilityState::Unknown);
} else { } else {