Commit 862815d1 by bergquist

go meta lint errors

parent 638eca3c
......@@ -125,7 +125,7 @@ func (c *EvalContext) GetNewState() m.AlertStateType {
return ns
}
since := time.Now().Sub(c.Rule.LastStateChange)
since := time.Since(c.Rule.LastStateChange)
if c.PrevAlertState == m.AlertStatePending && since > c.Rule.For {
return m.AlertStateAlerting
}
......
......@@ -36,7 +36,6 @@ func TestGetStateFromEvalContext(t *testing.T) {
name string
expected models.AlertStateType
applyFn func(ec *EvalContext)
focus bool
}{
{
name: "ok -> alerting",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment