From 28e6d9e1fffbfcd9c6ed66dc8bf4a8ad74b51579 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 3 Dec 2022 23:02:10 -0800 Subject: [PATCH] lib/storage: properly pass retentionMsecs to OpenStorage() at TestIndexDBRepopulateAfterRotation --- lib/storage/index_db_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/storage/index_db_test.go b/lib/storage/index_db_test.go index 9f00a579c..b0dbb8a2c 100644 --- a/lib/storage/index_db_test.go +++ b/lib/storage/index_db_test.go @@ -1549,11 +1549,10 @@ func TestMatchTagFilters(t *testing.T) { func TestIndexDBRepopulateAfterRotation(t *testing.T) { path := "TestIndexRepopulateAfterRotation" - s, err := OpenStorage(path, 0, 1e5, 1e5) + s, err := OpenStorage(path, msecsPerMonth, 1e5, 1e5) if err != nil { t.Fatalf("cannot open storage: %s", err) } - s.retentionMsecs = msecsPerMonth defer func() { s.MustClose() if err := os.RemoveAll(path); err != nil {