mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-13 08:36:38 +02: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>