MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / tick

Function tick

internal/e2e/webhooks_e2e_test.go:192–198  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
192func 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

Calls 1

TickMethod · 0.45

Tested by

no test coverage detected