From 2da40c97de8d142b3f0fd9ddc59df1973b967913 Mon Sep 17 00:00:00 2001 From: Manik2708 Date: Sat, 25 Jan 2025 14:15:17 +0530 Subject: [PATCH] goleak Signed-off-by: Manik2708 --- plugin/storage/es/dependencystore/storage.go | 2 +- plugin/storage/es/ilm/package_test.go | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 plugin/storage/es/ilm/package_test.go diff --git a/plugin/storage/es/dependencystore/storage.go b/plugin/storage/es/dependencystore/storage.go index efcb5897f18..8b790fb30f2 100644 --- a/plugin/storage/es/dependencystore/storage.go +++ b/plugin/storage/es/dependencystore/storage.go @@ -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() } diff --git a/plugin/storage/es/ilm/package_test.go b/plugin/storage/es/ilm/package_test.go new file mode 100644 index 00000000000..82e0474be6d --- /dev/null +++ b/plugin/storage/es/ilm/package_test.go @@ -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) +}