Dear Akka users, I am working on a simple CQRS framework on top of the akka persistence. I am unsuccessfully trying to create a non-flaky integration test which involves:
- spawning some persistent actors - sending some messages to them - *waiting for a while to make sure that the journal will be updated* (cassandra in my case) - replay events using a direct journal reader The problem is with the third step. Simply waiting for a while seems to be not enough in some cases, even if I set a longer time (several seconds). Can you recommend me a way to have a more reliable test? Can I wait somehow until all persistAsync methods will be completed fully and events visible in the journal? Thanks, Bartłomiej -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
