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. |
||
|---|---|---|
| .. | ||
| events.go | ||
| events_test.go | ||
| listeners.go | ||
| testing.go | ||