From e299f64b07e3c51c6d1551c4854896c1c0c3e3c6 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Sun, 6 Sep 2026 16:53:11 +1000 Subject: [PATCH] Assert the drilldown's no-fan-out path marks no partial round The empty answer for an unknown value never reaches a backend, so it must leave /healthz reporting a whole estate. - assert partial_rounds stays 0 after an unknown-value drilldown --- factroutes_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/factroutes_test.go b/factroutes_test.go index 9f76369..23de0bc 100644 --- a/factroutes_test.go +++ b/factroutes_test.go @@ -364,6 +364,10 @@ func TestHandler_FactsBySourceNameUnknownValueSkipsFanOut(t *testing.T) { t.Errorf("unknown value reached a backend %d times, want 0", got) } } + // No fan-out happened, so none was heard from partially either. + if got := health(t, srv).Query.PartialRounds; got != 0 { + t.Errorf("partial_rounds = %d, want 0", got) + } } // The record set is the estate's, not the pinned value's, so every value shares