tick drains the subscriber worker once. Tests call this between trigger and assertion so they don't wait on the 30s production tick.
(t *testing.T, ts *testutil.E2ATestServer)
| 190 | // tick drains the subscriber worker once. Tests call this between |
| 191 | // trigger and assertion so they don't wait on the 30s production tick. |
| 192 | func tick(t *testing.T, ts *testutil.E2ATestServer) { |
| 193 | t.Helper() |
| 194 | // publishAsync uses a goroutine — give it a beat to land the |
| 195 | // delivery row before we drain. |
| 196 | time.Sleep(50 * time.Millisecond) |
| 197 | ts.SubscriberWorker.Tick(context.Background()) |
| 198 | } |
| 199 | |
| 200 | // ---------------------------------------------------------------------- |
| 201 | // P1 — Outbound events |
no test coverage detected