magicsock/test: oops, fix a data race in nested-test logf hack.

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
Avery Pennarun
2020-05-13 23:44:58 -04:00
parent 42a0e0c601
commit 4f128745d8
3 changed files with 43 additions and 29 deletions

View File

@ -30,7 +30,6 @@ func UnfixLogs(t *testing.T) {
}
type panicLogWriter struct {
t *testing.T
}
func (w *panicLogWriter) Write(b []byte) (int, error) {