Properly cleanup state after SharedLeveldbJournalSpec exits
This commit is contained in:
parent
66c3484986
commit
8d990a631a
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ object PersistenceSpec {
|
|||
|
||||
trait Cleanup { this: PekkoSpec =>
|
||||
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 = {
|
||||
storageLocations.foreach(FileUtils.deleteDirectory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue