fix(notification-outbox): give KPI response a failure shape; log status-query faults

This commit is contained in:
Joseph Doherty
2026-05-19 01:55:46 -04:00
parent 82e3eb0e93
commit 77a05a8960
4 changed files with 68 additions and 11 deletions

View File

@@ -169,9 +169,11 @@ public class NotificationMessagesTests
public void NotificationKpiResponse_WithExpression_ChangesSingleField()
{
var kpi = new NotificationKpiResponse(
"corr-1", 10, 2, 1, 5, TimeSpan.FromMinutes(3));
"corr-1", Success: true, ErrorMessage: null, 10, 2, 1, 5, TimeSpan.FromMinutes(3));
var updated = kpi with { QueueDepth = 12 };
Assert.True(kpi.Success);
Assert.Null(kpi.ErrorMessage);
Assert.Equal(10, kpi.QueueDepth);
Assert.Equal(12, updated.QueueDepth);
Assert.Equal(2, updated.StuckCount);