Skip to content

Commit

Permalink
Fix false positive goleak test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Mar 31, 2024
1 parent 34f6a25 commit 11aa92b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/testutils/leakcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package testutils
package testutils_test

import (
"testing"

"github.com/jaegertracing/jaeger/pkg/testutils"
)

func TestVerifyGoLeaksOnce(t *testing.T) {
defer VerifyGoLeaksOnce(t)
defer testutils.VerifyGoLeaksOnce(t)
}

func TestMain(m *testing.M) {
VerifyGoLeaks(m)
testutils.VerifyGoLeaks(m)
}

0 comments on commit 11aa92b

Please sign in to comment.