Hi,
I'm porting some code using an homegrown persistence system to
PersistentActor, and I'm facing the following issue: how do you force
the journal to be empty before starting the test actor?
I have some code that is using Testkit to test the actor interactions,
but unfortunately it seems that the journal is replayed (ie we use the
same actor persistent id for every test) before I even have the time to
send something.
I'm aware of this github ticket around the same subject:
https://github.com/akka/akka/issues/15571
but at the moment I'm a bit desperate regarding testability of the
normal behavior of a persistent actor (I'm not yet interested in testing
the persistence itself).
Would it work to create a special journal that throws every event to the
bitbucket and never return anything?
--
Brice Figureau
My Blog:
http://www.masterzen.fr/