Skip to content

Commit

Permalink
Rename to package leaks_test
Browse files Browse the repository at this point in the history
Keeps leak test in separate package with proper name
  • Loading branch information
egorse committed May 14, 2024
1 parent fffddf1 commit 72c908a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reaper/reaper_test.go → leaks_test/reaper_leak_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package reaper
package leaks_test

import (
"context"
Expand All @@ -17,7 +17,7 @@ import (

// TestReaper does multiple rapid Dial/Close to check that connection reaper goroutines are not leaking.
// In is in own package as goleak detects also threads from values created during init().
func TestReaper(t *testing.T) {
func TestReaperLeak1(t *testing.T) {
defer goleak.VerifyNone(t)

mu := &sync.Mutex{}
Expand Down

0 comments on commit 72c908a

Please sign in to comment.