mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
lib/storage: properly pass retentionMsecs to OpenStorage() at TestIndexDBRepopulateAfterRotation
This commit is contained in:
parent
ea55c16422
commit
106332cd9f
1 changed files with 1 additions and 2 deletions
|
@ -1658,11 +1658,10 @@ func TestMatchTagFilters(t *testing.T) {
|
||||||
|
|
||||||
func TestIndexDBRepopulateAfterRotation(t *testing.T) {
|
func TestIndexDBRepopulateAfterRotation(t *testing.T) {
|
||||||
path := "TestIndexRepopulateAfterRotation"
|
path := "TestIndexRepopulateAfterRotation"
|
||||||
s, err := OpenStorage(path, 0, 1e5, 1e5)
|
s, err := OpenStorage(path, msecsPerMonth, 1e5, 1e5)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("cannot open storage: %s", err)
|
t.Fatalf("cannot open storage: %s", err)
|
||||||
}
|
}
|
||||||
s.retentionMsecs = msecsPerMonth
|
|
||||||
defer func() {
|
defer func() {
|
||||||
s.MustClose()
|
s.MustClose()
|
||||||
if err := os.RemoveAll(path); err != nil {
|
if err := os.RemoveAll(path); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue