完善续期通知与前端界面

This commit is contained in:
Christ committed 2026-07-10 10:38:25 +08:00
1 parent 25419c027f
commit 45f895d0c4
64 files changed
+2948 -487

No files matched your search

+2 -2
View File
@@ -212,7 +212,7 @@ func TestHandleMaxFailures_AlertOnce(t *testing.T) {
}
call()
call()
if len(h.alerts) != 1 || h.alerts[0] != AlertLevelCritical {
t.Fatalf("两次 handleMaxFailures 应只告警一次,got %+v", h.alerts)
if len(h.alerts) != 2 || h.alerts[0] != AlertLevelWarn || h.alerts[1] != AlertLevelCritical {
t.Fatalf("两次 handleMaxFailures 应只发一次掉线 warn 和一次恢复失败 critical,got %+v", h.alerts)
}
}