From d16c2998d0920f8bb5f4fa52bbdf0ea6d085b473 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 2 Oct 2026 16:40:55 +0200 Subject: [PATCH] test(reconcile): the stored reason is a kind -- the old assertion encoded the leak the review found Co-Authored-By: Claude Sonnet 5.5 --- internal/reconcile/reconcile_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/reconcile/reconcile_test.go b/internal/reconcile/reconcile_test.go index 4cf8875..cb1bb45 100644 --- a/internal/reconcile/reconcile_test.go +++ b/internal/reconcile/reconcile_test.go @@ -193,7 +193,8 @@ func TestReconcile_ConsecutiveModelErrorsStopTheWholeReconciliationInsteadOfWait assert.Len(t, adj.calls, 3, "three consecutive failures and it stops asking") assert.Equal(t, strings.Join(a, " "), out.Text, "the base text, with none of the partial changes") assert.Equal(t, domain.ReconcileSkipped, out.Reconciliation.Status) - assert.Contains(t, out.Reconciliation.Reason, "gateway down") + assert.Contains(t, out.Reconciliation.Reason, "3 times in a row") + assert.NotContains(t, out.Reconciliation.Reason, "gateway down", "the reason is shown on the page: a kind, not the model's own text") } func TestReconcile_ASuccessBetweenFailuresResetsTheBreaker(t *testing.T) {