Properly cleanup state after SharedLeveldbJournalSpec exits

This commit is contained in:
Matthew de Detrich 2023-07-06 17:14:24 +02:00 committed by Matthew de Detrich
parent 66c3484986
commit 8d990a631a

View file

@ -89,7 +89,8 @@ object PersistenceSpec {
trait Cleanup { this: PekkoSpec => trait Cleanup { this: PekkoSpec =>
val storageLocations = val storageLocations =
List("pekko.persistence.snapshot-store.local.dir").map(s => new File(system.settings.config.getString(s))) List("pekko.persistence.snapshot-store.local.dir",
"pekko.persistence.journal.leveldb-shared.store.dir").map(s => new File(system.settings.config.getString(s)))
override protected def atStartup(): Unit = { override protected def atStartup(): Unit = {
storageLocations.foreach(FileUtils.deleteDirectory) storageLocations.foreach(FileUtils.deleteDirectory)