integration.BeforeTest can be run without leak-detection.

This commit is contained in:
Piotr Tabor
2021-05-27 18:44:14 +02:00
parent b3f16d6691
commit 3f13d3a2d5
13 changed files with 116 additions and 37 deletions

View File

@ -187,7 +187,7 @@ func TestStreamReaderDialResult(t *testing.T) {
// TestStreamReaderStopOnDial tests a stream reader closes the connection on stop.
func TestStreamReaderStopOnDial(t *testing.T) {
testutil.BeforeTest(t)
testutil.RegisterLeakDetection(t)
h := http.Header{}
h.Add("X-Server-Version", version.Version)
tr := &respWaitRoundTripper{rrt: &respRoundTripper{code: http.StatusOK, header: h}}