I'd recommend using multi-jvm tests for more realistic testing. I guess we
did't in that example because of some limitation in Activator.

/Patrik
ons 15 mars 2017 kl. 14:39 skrev Ronan Michaux <[email protected]>:

> I see that this official Activator project *"Distributed workers with
> Akka and Scala"*
> http://www.lightbend.com/activator/template/akka-distributed-workers
> pointed in this documentation
> http://doc.akka.io/docs/akka/2.4.17/scala/cluster-client.html#An_Example
> is tested *without Multi-Jvm*. I'm very surprised.
>
> *Is it a good practice ?*
>
> Le lundi 13 mars 2017 15:50:44 UTC+1, Patrik Nordwall a écrit :
>
>
>
> On Mon, Mar 13, 2017 at 1:13 PM, Ronan Michaux <[email protected]>
> wrote:
>
> Thank you !
>
> Multi-Jvm Akka-Cluster tests are hard to understand.
>
> Why there so many helper method join(...) copy'n'pasted ?
>
> def join(from: RoleName, to: RoleName): Unit = ...
>
>
>
> They have gown organically and I agree that a cleanup and extraction of
> common utilities would be desired. Perhaps even create a specific cluster
> testkit. Help with this from the community would be great.
>
> /Patrik
>
>
>
>
> Le samedi 11 mars 2017 15:50:28 UTC+1, Patrik Nordwall a écrit :
>
> Here is a test that is testing exactly this and a few more things:
> https://github.com/akka/akka/blob/master/akka-cluster-tools/src/multi-jvm/scala/akka/cluster/singleton/ClusterSingletonManagerSpec.scala#L398
>
> You find example of multi-node testing in general in
> https://www.lightbend.com/activator/template/akka-sample-multi-node-scala
>
> /Patrik
>
> On Sat, Mar 11, 2017 at 2:52 PM, Ronan Michaux <[email protected]>
> wrote:
>
> Hi,
>
> I'm trying to test a 2 JVM cluster with a singleton Actor on JVM1.
>
> I want to test that when JVM1 crash, a new Singleton is created on JVM2.
>
> I spend lot of time, but I fail to write this test.
>
> Where could I found an example of this kind of test ?
>
> Ronan.
>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
>
> Patrik Nordwall
> Akka Tech Lead
> Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
> Twitter: @patriknw
>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
>
> Patrik Nordwall
> Akka Tech Lead
> Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
> Twitter: @patriknw
>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to