tailscale/ipn
Josh Bleecher Snyder 07c09f470d ipn/ipnlocal: do not shut down the backend halfway through TestStateMachine
LocalBackend.Shutdown's docs say:

> The backend can no longer be used after Shutdown returns.

Nevertheless, TestStateMachine blithely calls Shutdown, talks some smack,
and continues on, expecting things to work. Other uses of Shutdown
in the codebase are as intended.

Things mostly kinda work anyway, except that the wgengine.Engine has been
shut down, so calls to Reconfig fail. Those get logged:

> local.go:603: wgengine status error: engine closing; no status

but otherwise ignored.

However, the Reconfig failure caused one fewer call to pause/unpause
than normal. Now the assertCalls lines match the equivalent ones
earlier in the test.

I don't see an obvious correct replacement for Shutdown in the context
of this test; I'm not sure entirely what it is trying to accomplish.
It is possible that many of the tests remaining after the prior call
to Shutdown are now extraneous. They don't harm anything, though,
so err on the side of safety and leave them for now.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-09-17 09:56:32 -07:00
..
ipnlocal ipn/ipnlocal: do not shut down the backend halfway through TestStateMachine 2021-09-17 09:56:32 -07:00
ipnserver all: close fake userspace engines when tests complete 2021-09-15 15:31:51 -07:00
ipnstate cmd/tailscale: fix "tailscale ip $self-host-hostname" 2021-09-07 11:57:23 -07:00
localapi client/tailscale,ipn/localapi: warn on tailscale/tailscaled version skew 2021-08-19 08:36:13 -07:00
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 2021-04-01 11:57:24 -07:00
backend.go ipnlocal: accept a new opts.UpdatePrefs field. 2021-05-04 15:19:25 -04:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 2021-04-18 08:12:18 -07:00
handle.go ipn: another controlplane synonym 2021-07-13 08:22:10 -07:00
message.go ipn: allow b to be nil in NewBackendServer 2021-05-19 09:33:19 -07:00
message_test.go ipn: allow b to be nil in NewBackendServer 2021-05-19 09:33:19 -07:00
prefs.go ipn: another controlplane synonym 2021-07-13 08:22:10 -07:00
prefs_clone.go cmd/cloner: reduce diff noise when changing command 2021-09-15 10:58:12 -07:00
prefs_test.go ipn, etc: use controlplane.tailscale.com 2021-06-28 09:38:23 -07:00
store.go ipn/store: add ability to store data as k8s secrets. 2021-09-01 12:50:59 -07:00
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 2020-05-13 23:12:35 -04:00