Skip to content

Commit

Permalink
[chore][receiver/awscontainerinsights] Enable goleak checks (#32404)
Browse files Browse the repository at this point in the history
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
Enable `goleak` checks on the `cadvisor` package of the AWS Container
Insights receiver to help ensure no goroutines are being leaked.

**Link to tracking Issue:** <Issue number if applicable>
#30438

**Testing:** <Describe what testing was performed and which tests were
added.>
This package is a linux-only package, so I wasn't able to test locally,
but CI/CD tests are passing.

Co-authored-by: Sean Marciniak <30928402+MovieStoreGuy@users.noreply.github.com>
  • Loading branch information
crobert-1 and MovieStoreGuy authored Jun 30, 2024
1 parent 2813fe2 commit fb4ab3c
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

package cadvisor

import (
"testing"

"go.uber.org/goleak"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}

0 comments on commit fb4ab3c

Please sign in to comment.