mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
http2: reset DebugGoroutines after testing it
Return DebugGoroutines to its original setting after turning it on for the test. Change-Id: I860f3b03d3736617657f124f957efe89fbe12104 Reviewed-on: https://go-review.googlesource.com/18070 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
68a055e15f
commit
6c89489caf
@@ -11,7 +11,10 @@ import (
|
||||
)
|
||||
|
||||
func TestGoroutineLock(t *testing.T) {
|
||||
oldDebug := DebugGoroutines
|
||||
DebugGoroutines = true
|
||||
defer func() { DebugGoroutines = oldDebug }()
|
||||
|
||||
g := newGoroutineLock()
|
||||
g.check()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user