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:
Jeff R. Allen
2015-12-19 16:51:57 +06:00
committed by Brad Fitzpatrick
parent 68a055e15f
commit 6c89489caf

View File

@@ -11,7 +11,10 @@ import (
)
func TestGoroutineLock(t *testing.T) {
oldDebug := DebugGoroutines
DebugGoroutines = true
defer func() { DebugGoroutines = oldDebug }()
g := newGoroutineLock()
g.check()