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/eventbustest
Claus Lensbøl 005e264b54
util/eventbus/eventbustest: add support for synctest instead of timers (#17522)
Before synctest, timers was needed to allow the events to flow into the
test bus. There is still a timer, but this one is not derived from the
test deadline and it is mostly arbitrary as synctest will render it
practically non-existent.

With this approach, tests that do not need to test for the absence of
events do not rely on synctest.

Updates #15160

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
2 months ago
..
doc.go util/eventbus/eventbustest: add support for synctest instead of timers (#17522) 2 months ago
eventbustest.go util/eventbus/eventbustest: add support for synctest instead of timers (#17522) 2 months ago
eventbustest_test.go util/eventbus/eventbustest: add support for synctest instead of timers (#17522) 2 months ago
examples_test.go util/eventbus/eventbustest: add support for synctest instead of timers (#17522) 2 months ago