tailscale/ipn/ipnlocal
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
..
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: fix minor typo in comment 2021-09-17 09:56:32 -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: do not shut down the backend halfway through TestStateMachine 2021-09-17 09:56:32 -07:00