Skip to content

Commit da5480e

Browse files
committed
adapt test
1 parent 8c31029 commit da5480e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/scala/com/scalableminds/fossildb/RocksOptionsSuite.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.scalableminds.fossildb
33
import java.io.File
44
import java.nio.file.Paths
55
import com.scalableminds.fossildb.db.StoreManager
6-
import org.rocksdb.{ColumnFamilyDescriptor, DBOptions, Env}
6+
import org.rocksdb.{ColumnFamilyDescriptor, ConfigOptions, DBOptions, Env}
77
import org.scalatest.BeforeAndAfterEach
88
import org.scalatest.flatspec.AnyFlatSpec
99

@@ -42,9 +42,10 @@ class RocksOptionsSuite extends AnyFlatSpec with BeforeAndAfterEach with TestHel
4242
val options = new DBOptions()
4343
.setStatsDumpPeriodSec(100)
4444
val cfListRef: mutable.Buffer[ColumnFamilyDescriptor] = mutable.Buffer()
45+
val configOptions = new ConfigOptions()
4546
// if successful, the rocksdb writes the loaded options to a file that can then be retreived with loadLatestOptions
4647
// we test that that one now includes the value 700 from the file above, rather than the 100 specified as a default
47-
org.rocksdb.OptionsUtil.loadLatestOptions(dataDir.toString, Env.getDefault, options, cfListRef.asJava)
48+
org.rocksdb.OptionsUtil.loadLatestOptions(configOptions, dataDir.toString, options, cfListRef.asJava)
4849
assert(options.statsDumpPeriodSec() == 700)
4950
storeManager.close
5051
}

0 commit comments

Comments
 (0)