mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-09 07:13:35 -05:00
InitEventsForTesting sets up a real Watermill GoChannel router with a cancellable context, returning a readiness channel. Skips Prometheus metrics and poison queue to avoid duplicate registration panics. Unfake re-enables real event dispatch after test init helpers call Fake(). Also guards Dispatch against nil pubsub with a clear error message.