From 818ae53d22525fdd6ecd89e72d038e2505874f20 Mon Sep 17 00:00:00 2001 From: Nikolay Komarevskiy Date: Mon, 26 Aug 2024 13:04:53 +0300 Subject: [PATCH] docs: add a comment --- .../dynamic_routing/snapshot/latency_based_routing.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ic-agent/src/agent/http_transport/dynamic_routing/snapshot/latency_based_routing.rs b/ic-agent/src/agent/http_transport/dynamic_routing/snapshot/latency_based_routing.rs index fededa02..b509731f 100644 --- a/ic-agent/src/agent/http_transport/dynamic_routing/snapshot/latency_based_routing.rs +++ b/ic-agent/src/agent/http_transport/dynamic_routing/snapshot/latency_based_routing.rs @@ -615,6 +615,8 @@ mod tests { node_1.score = 16.0; node_2.score = 8.0; node_3.score = 4.0; + // even though the score is high, this node should never be selected as it is unhealthy + node_4.score = 30.0; snapshot.nodes_with_metrics = vec![node_1, node_2, node_3, node_4];