From 11aa92bff279610243e7e02bc46852aabe22c219 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sun, 31 Mar 2024 18:07:01 -0400 Subject: [PATCH] Fix false positive goleak test Signed-off-by: Yuri Shkuro --- pkg/testutils/leakcheck_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/testutils/leakcheck_test.go b/pkg/testutils/leakcheck_test.go index b13858c8c30..fb164729dbf 100644 --- a/pkg/testutils/leakcheck_test.go +++ b/pkg/testutils/leakcheck_test.go @@ -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) }