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/ipn
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>
3 years ago
..
ipnlocal ipn/ipnlocal: add failing test 3 years ago
ipnserver all: close fake userspace engines when tests complete 3 years ago
ipnstate cmd/tailscale: fix "tailscale ip $self-host-hostname" 3 years ago
localapi
policy
backend.go
doc.go
fake_test.go
handle.go
message.go
message_test.go
prefs.go
prefs_clone.go cmd/cloner: reduce diff noise when changing command 3 years ago
prefs_test.go
store.go
store_test.go