control/noise: clean up resources in TestNoReuse

Close the server and client.
Without this, we leak system threads.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
pull/3468/head
Josh Bleecher Snyder 3 years ago committed by Josh Bleecher Snyder
parent c7fb26acdb
commit 25eab78573

@ -139,6 +139,9 @@ func TestNoReuse(t *testing.T) {
t.Fatalf("server wire traffic seen twice") t.Fatalf("server wire traffic seen twice")
} }
packets[serverWire] = true packets[serverWire] = true
server.Close()
client.Close()
} }
} }

Loading…
Cancel
Save