feat(alerting): fixed test issues

This commit is contained in:
Torkel Ödegaard
2016-06-07 14:51:53 +02:00
parent 8105ec4660
commit 3289225b77
6 changed files with 19 additions and 35 deletions
+2 -2
View File
@@ -114,11 +114,11 @@ func (e *Engine) resultHandler() {
result.State = alertstates.Critical
result.Description = fmt.Sprintf("Failed to run check after %d retires, Error: %v", maxRetries, result.Error)
saveState(result)
e.saveState(result)
}
} else {
result.AlertJob.RetryCount = 0
saveState(result)
e.saveState(result)
}
}
}