Expose peer cache endpoint score reasons
This commit is contained in:
@@ -151,6 +151,9 @@ func TestPeerCacheAppliesEndpointHealthObservations(t *testing.T) {
|
||||
if entry.BestCandidateID != "node-b-wss" || entry.Endpoint != "https://node-b.example.test:443" {
|
||||
t.Fatalf("peer cache did not apply endpoint observations: %+v", entry)
|
||||
}
|
||||
if !containsString(entry.BestScoreReasons, "transport:wss") {
|
||||
t.Fatalf("peer cache did not expose score reasons: %+v", entry.BestScoreReasons)
|
||||
}
|
||||
}
|
||||
|
||||
func TestPeerCacheUsesPreferredCorporateEndpointAddress(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user