mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
The test called ruleManager.start() before ruleManager.Update(), so the group goroutine skipped the <-m.block wait and began evaluating immediately. The fixture has a recording rule, and if the first 10s tick fired before defer ruleManager.Stop() ran, Eval was called with a nil QueryFunc (and nil Appendable), causing a nil pointer dereference. Fix by providing Appendable, Queryable, and QueryFunc in the ManagerOptions, matching the pattern used by other tests that load real rule files and start the manager. Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| alerting.go | ||
| alerting_test.go | ||
| group.go | ||
| group_test.go | ||
| manager.go | ||
| manager_test.go | ||
| origin.go | ||
| origin_test.go | ||
| recording.go | ||
| recording_test.go | ||
| rule.go | ||