test(reconcile): the stored reason is a kind -- the old assertion encoded the leak the review found
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -193,7 +193,8 @@ func TestReconcile_ConsecutiveModelErrorsStopTheWholeReconciliationInsteadOfWait
|
|||||||
assert.Len(t, adj.calls, 3, "three consecutive failures and it stops asking")
|
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, strings.Join(a, " "), out.Text, "the base text, with none of the partial changes")
|
||||||
assert.Equal(t, domain.ReconcileSkipped, out.Reconciliation.Status)
|
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) {
|
func TestReconcile_ASuccessBetweenFailuresResetsTheBreaker(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user