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
This commit is contained in:
pulse-triage[bot]
2026-10-01 21:14:07 +01:00
parent cecbd5418b
commit 89a0896959
+1 -1
View File
@@ -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 {