Skip to content

Commit

Permalink
goleak
Browse files Browse the repository at this point in the history
Signed-off-by: Manik2708 <[email protected]>
  • Loading branch information
Manik2708 committed Jan 25, 2025
1 parent bd19543 commit 2da40c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/storage/es/dependencystore/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (s *DependencyStore) getWriteIndex(ts time.Time) string {
return indexWithDate(s.dependencyIndexPrefix, s.indexDateLayout, ts)
}

func (s *DependencyStore) CreatePolicy() error {
func (s *DependencyStore) InitializePolicyManager() error {
policyManager := ilm.NewPolicyManager(s.client, s.dependencyIndexPrefix)
return policyManager.Init()

Check warning on line 142 in plugin/storage/es/dependencystore/storage.go

View check run for this annotation

Codecov / codecov/patch

plugin/storage/es/dependencystore/storage.go#L140-L142

Added lines #L140 - L142 were not covered by tests
}
14 changes: 14 additions & 0 deletions plugin/storage/es/ilm/package_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) 2025 The Jaeger Authors.
// SPDX-License-Identifier: Apache-2.0

package ilm

import (
"testing"

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

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

0 comments on commit 2da40c9

Please sign in to comment.