Add maintenance windows for planned work
This commit is contained in:
@@ -16,3 +16,12 @@ func TestEvaluateAlerts(t *testing.T) {
|
||||
t.Fatalf("неверная сортировка уведомлений: %+v", alerts)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSlowCollectionDoesNotCreateAlert(t *testing.T) {
|
||||
metrics := dashboardMetrics{Monitor: MonitorHealth{SlowCollector: true, CollectionDurationMs: 12308}}
|
||||
for _, alert := range evaluateAlerts(metrics, defaultThresholds()) {
|
||||
if alert.ID == "monitor-slow" {
|
||||
t.Fatalf("медленный цикл не должен создавать уведомление: %+v", alert)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user