mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Alerting: Fix flaky test in scheduler's tests (#89923)
This commit is contained in:
parent
fce03cd724
commit
655e477c20
@ -248,8 +248,8 @@ func (a *alertRule) Run(key ngmodels.AlertRuleKey) error {
|
||||
|
||||
evalStart := a.clock.Now()
|
||||
defer func() {
|
||||
a.evalApplied(key, ctx.scheduledAt)
|
||||
evalDuration.Observe(a.clock.Now().Sub(evalStart).Seconds())
|
||||
a.evalApplied(key, ctx.scheduledAt)
|
||||
}()
|
||||
|
||||
for attempt := int64(1); attempt <= a.maxAttempts; attempt++ {
|
||||
|
Loading…
Reference in New Issue
Block a user