Fix LeveldbEndToEndEventAdapterSpec, it's not logging because journal not started

This commit is contained in:
Patrik Nordwall 2020-02-12 16:50:18 +01:00
parent 01b95c50ec
commit 21bbae8c46

View file

@ -8,7 +8,7 @@ import java.io.File
import akka.actor._
import akka.persistence.journal.{ EventAdapter, EventSeq }
import akka.testkit.{ EventFilter, TestProbe }
import akka.testkit.TestProbe
import akka.util.unused
import com.typesafe.config.{ Config, ConfigFactory }
import org.apache.commons.io.FileUtils
@ -233,7 +233,6 @@ abstract class EndToEndEventAdapterSpec(journalName: String, journalConfig: Conf
s"""$journalPath.event-adapter-bindings."${classOf[EndToEndEventAdapterSpec].getCanonicalName}$$A"""")
withActorSystem("MissingAdapterSystem", journalConfig.withFallback(missingAdapterConfig)) { implicit system2 =>
EventFilter[ActorInitializationException](occurrences = 1, pattern = ".*undefined event-adapter.*").intercept {
intercept[IllegalArgumentException] {
Persistence(system2).adaptersFor(s"akka.persistence.journal.$journalName").get(classOf[String])
}.getMessage should include("was bound to undefined event-adapter: a (bindings: [a, b], known adapters: b)")
@ -241,7 +240,6 @@ abstract class EndToEndEventAdapterSpec(journalName: String, journalConfig: Conf
}
}
}
}
// needs persistence between actor systems, thus not running with the inmem journal
class LeveldbEndToEndEventAdapterSpec