mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: properly pass retentionMsecs to OpenStorage() at TestIndexDBRepopulateAfterRotation
This commit is contained in:
parent
343c69fc15
commit
28e6d9e1ff
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue