From d198445482facf70e24b07c3360822a11d4184dd Mon Sep 17 00:00:00 2001 From: Curtis Robert Date: Fri, 5 Apr 2024 10:58:57 -0700 Subject: [PATCH] [chore][receiver/saphana] Enable goleak check (#32183) Enable `goleak` check for the SAP HANA receiver to help ensure no goroutines are being leaked. **Link to tracking Issue:** #30438 --- receiver/saphanareceiver/package_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 receiver/saphanareceiver/package_test.go diff --git a/receiver/saphanareceiver/package_test.go b/receiver/saphanareceiver/package_test.go new file mode 100644 index 000000000000..9a64a29c0a38 --- /dev/null +++ b/receiver/saphanareceiver/package_test.go @@ -0,0 +1,14 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package saphanareceiver + +import ( + "testing" + + "go.uber.org/goleak" +) + +func TestMain(m *testing.M) { + goleak.VerifyTestMain(m) +}