You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util/eventbus
M. J. Fromberger fc9a74a405
util/eventbus: fix flakes in eventbustest tests (#17198)
When tests run in parallel, events from multiple tests on the same bus can
intercede with each other. This is working as intended, but for the test cases
we want to control exactly what goes through the bus.

To fix that, allocate a fresh bus for each subtest.

Fixes #17197

Change-Id: I53f285ebed8da82e72a2ed136a61884667ef9a5e
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
3 months ago
..
assets util/eventbus: add a debug HTTP handler for the bus 9 months ago
debug-demo util/eventbus: add a helper program for bus development 9 months ago
eventbustest util/eventbus: fix flakes in eventbustest tests (#17198) 3 months ago
bench_test.go util/eventbus: add basic throughput benchmarks (#15284) 9 months ago
bus.go util/eventbus: fix docstrings (#16401) 5 months ago
bus_test.go util/eventbus: add a Done channel to the Client (#17118) 3 months ago
client.go util/eventbus: add a Done channel to the Client (#17118) 3 months ago
debug.go client/local,cmd/tailscale/cli,ipn/localapi: expose eventbus graph (#16597) 5 months ago
debughttp.go util/eventbus: add ts_omit_debugeventbus 3 months ago
debughttp_off.go util/eventbus: add ts_omit_debugeventbus 3 months ago
doc.go util/eventbus: add test helpers to simplify testing events (#16294) 5 months ago
fetch-htmx.go util/eventbus: add a debug HTTP handler for the bus 9 months ago
publish.go util/eventbus: remove redundant code from eventbus.Publish 6 months ago
queue.go util/eventbus: make internal queue a generic type 9 months ago
subscribe.go util/eventbus: remove redundant code from eventbus.Publish 6 months ago