tailcfg, control/controlclient: add goroutine dump debug feature

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-03-03 10:17:05 -08:00
committed by Brad Fitzpatrick
parent f858b0d25f
commit 92cdb30b26
4 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package controlclient
import "testing"
func TestScrubbedGoroutineDump(t *testing.T) {
t.Logf("Got:\n%s\n", scrubbedGoroutineDump())
}