fix: testutil blocking PR checks from passing (#101527)

This commit is contained in:
Charandas
2025-03-03 10:56:30 -08:00
committed by GitHub
parent dc61bf0855
commit cedb4ef9c1
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -7,12 +7,14 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"go.opencensus.io/stats/view"
"go.uber.org/goleak"
"github.com/grafana/grafana/pkg/util/testutil/mocks"
)
func TestMain(m *testing.M) {
view.Stop()
// make sure we don't leak goroutines after tests in this package have
// finished, which means we haven't leaked contexts either
goleak.VerifyTestMain(m)