lib/storage: properly pass retentionMsecs to OpenStorage() at TestIndexDBRepopulateAfterRotation

This commit is contained in:
Aliaksandr Valialkin 2022-12-03 23:02:10 -08:00
parent 343c69fc15
commit 28e6d9e1ff
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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 {