From b62341d3087e0c166b486ac2a7db758b5904b518 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 27 Jul 2020 20:33:09 +0000 Subject: [PATCH] wgengine/magicsock: add docstring. Signed-off-by: David Anderson --- wgengine/magicsock/magicsock_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgengine/magicsock/magicsock_test.go b/wgengine/magicsock/magicsock_test.go index 571efc59b..082f6b0b1 100644 --- a/wgengine/magicsock/magicsock_test.go +++ b/wgengine/magicsock/magicsock_test.go @@ -766,6 +766,10 @@ func newPinger(t *testing.T, logf logger.Logf, src, dst *magicStack) (cleanup fu return cleanup } +// testActiveDiscovery verifies that two magicStacks tied to the given +// devices can establish a direct p2p connection with each other. See +// TestActiveDiscovery for the various configurations of devices that +// get exercised. func testActiveDiscovery(t *testing.T, d *devices) { tstest.PanicOnLog() rc := tstest.NewResourceCheck()