tailscale/ipn/ipnlocal
Josh Bleecher Snyder b681edc572 ipn/ipnlocal: add failing test
Concurrent calls to LocalBackend.setWgengineStatus
could result in some of the status updates being dropped.
This was exacerbated by 92077ae78c,
which increases the probability of concurrent status updates,
causing test failures (tailscale/corp#2579).

It's going to take a bit of work to fix this test.
The ipnlocal state machine is difficult to reason about,
particularly in the face of concurrency.
We could fix the test trivially by throwing a new mutex around
setWgengineStatus to serialize calls to it,
but I'd like to at least try to do better than cosmetics.

In the meantime, commit the test.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-09-15 15:31:51 -07:00
..
dnsconfig_test.go ipn/ipnlocal: flesh out the dnsConfigForNetmap tests 2021-09-07 19:15:54 -07:00
local_test.go all: close fake userspace engines when tests complete 2021-09-15 15:31:51 -07:00
local.go ipn/ipnlocal: flesh out the dnsConfigForNetmap tests 2021-09-07 19:15:54 -07:00
loglines_test.go all: close fake userspace engines when tests complete 2021-09-15 15:31:51 -07:00
peerapi_macios_ext.go all: simplify ts_macext build tags 2021-08-17 11:13:03 -07:00
peerapi_test.go all: update tests to use tstest.MemLogger 2021-09-07 20:06:15 -07:00
peerapi.go all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
state_test.go ipn/ipnlocal: add failing test 2021-09-15 15:31:51 -07:00