From 89a0896959b0aec441e5950e3d2e2adab07a6100 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Thu, 1 Oct 2026 21:14:07 +0100 Subject: [PATCH] Match quiet-hours diagnosis regression to its category reason Keep the new clock/dispatch proof aligned with the unchanged quiet_hours:non-critical diagnosis contract; no production or schedule policy changes. Change-source: pulse-maintainer --- internal/alerts/quiet_hours_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/alerts/quiet_hours_test.go b/internal/alerts/quiet_hours_test.go index e8176acc30..cd737bff9b 100644 --- a/internal/alerts/quiet_hours_test.go +++ b/internal/alerts/quiet_hours_test.go @@ -564,7 +564,7 @@ func TestQuietHoursClockDispatchAndDiagnosis(t *testing.T) { } if deferred { want, _ := time.Parse(time.RFC3339, tc.replay) - if diagnosis.Status != AlertDeliveryStatusDeferred || diagnosis.Reason != AlertDeliveryReasonQuietHours || diagnosis.QuietHoursReplayAt == nil || !diagnosis.QuietHoursReplayAt.Equal(want) { + if diagnosis.Status != AlertDeliveryStatusDeferred || diagnosis.Reason != AlertDeliveryReasonQuietHours+":non-critical" || diagnosis.QuietHoursReplayAt == nil || !diagnosis.QuietHoursReplayAt.Equal(want) { t.Fatalf("diagnosis disagrees with local-clock policy: %+v", diagnosis) } } else if diagnosis.Status != AlertDeliveryStatusWouldSend || diagnosis.Reason != AlertDeliveryReasonReady {