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/wgengine
Nick Khyl 462e1fc503 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>
2 days ago
..
bench ipn/ipnlocal, all: plumb health trackers in tests 7 months ago
capture wgengine/capture: fix v6 field typo in wireshark dissector 4 months ago
filter wgengine/filter: actually use the passed CapTestFunc [capver 109] 5 days ago
magicsock all: use iterators over slice views more 2 weeks ago
netlog wgengine: add exit destination logging enable for wgengine logger (#11952) 7 months ago
netstack ipn/{ipnlocal,localapi}, wgengine/netstack: call (*LocalBackend).Shutdown when tests that create them complete 2 days ago
router cmd/containerboot,util/linuxfw: create a SNAT rule for dst/src only once, clean up if needed (#13658) 2 months ago
wgcfg all: use iterators over slice views more 2 weeks ago
wgint wgengine{,/wgint}: add wgint.Peer wrapper type, add to wgengine.Engine 9 months ago
wglog all: use Go 1.22 range-over-int 7 months ago
winnet all: add test for package comments, fix, add comments as needed 5 months ago
mem_ios.go all: update copyright and license headers 2 years ago
pendopen.go all: use iterators over slice views more 2 weeks ago
userspace.go all: use iterators over slice views more 2 weeks ago
userspace_ext_test.go util/usermetrics: make usermetrics non-global 2 months ago
userspace_test.go util/usermetrics: make usermetrics non-global 2 months ago
watchdog.go ipn/ipnlocal,net/tstun,wgengine: create and plumb jailed packet filter 7 months ago
watchdog_js.go all: update copyright and license headers 2 years ago
watchdog_test.go util/usermetrics: make usermetrics non-global 2 months ago
wgengine.go all: add test for package comments, fix, add comments as needed 5 months ago