diff --git a/tests/util.go b/tests/util.go index c2d0ea4..5e99c4b 100644 --- a/tests/util.go +++ b/tests/util.go @@ -39,6 +39,8 @@ type MemoryLeakTestSuite struct { } func (s *MemoryLeakTestSuite) SetupTest() { + // Without this first line we observed some goroutines just closing. + runtime.Gosched() s.ExpectedGoroutingIncrease = 0 s.goroutinesBefore = &bytes.Buffer{}