summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2024-11-22 08:25:54 -0600
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2024-11-22 09:46:11 -0600
commit462e1fc503fa2c26d8ff1a70a641ebb835ac9f8f (patch)
tree49fe76cbad01fabc7cacda3bbe8be486dacf119d /control/controlhttp/controlhttpserver/controlhttpserver.go
parent74d4652144f11ace04612496095d658414ab09db (diff)
downloadtailscale-462e1fc503fa2c26d8ff1a70a641ebb835ac9f8f.tar.xz
tailscale-462e1fc503fa2c26d8ff1a70a641ebb835ac9f8f.zip
ipn/{ipnlocal,localapi}, wgengine/netstack: call (*LocalBackend).Shutdown when tests that create them complete
We have several places where LocalBackend instances are created for testing, but they are rarely shut down when the tests that created them exit. In this PR, we update newTestLocalBackend and similar functions to use testing.TB.Cleanup(lb.Shutdown) to ensure LocalBackend instances are properly shut down during test cleanup. Updates #12687 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions