Inside an actor, I can get the number of children viacontext.children.toList.lengthHowever, outside the actor, even when i wrap it in a TestActorRef, this doesn't work:TAR.underlying.children.toList.lengthIt always seems to return 0, even when the other one returns 0, 1, 2, etc..The semantics I'm looking for in my ScalaTest tests iseventually(Timeout(Span(5, Seconds))){ assert{ TAR.underlying.children.toList.length == 2} }eventually(Timeout(Span(5, Seconds))){ assert{ TAR.underlying.children.toList.length == 0} }
a.k.a. "in at most 5 seconds, there will be 2 children. At most 5 seconds after that, all the children will be dead". Is there a nice way of doing this? I could track the creation/termination of children myself, but i'm sure it's already being tracked *somewhere*.
Thanks!-Haoyi--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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 post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
Fairly unrelated, but that output said don?t forget to... which probably means there's a Unicode ' instead of the ASCII one. Generally for English it's always '
Hi Roland,
Thank you for the links, there's more to it than I realised (isn't there always with typography?).
On English (at least US and UK) keyboards there's no access to the apostrophe that you mention, and it doesn't exist in ASCII. If you stick to ASCII in program output you minimise the chances of a ? or a rectangle instead of what you want the user to see. Even if you get it right for Linux, PuTTY (ssh client for Windows) still defaults to the wrong encoding (ISO-8859-1) so someone's going to see something bad.
Ricky.
Hi Roland,
Thank you for the links, there's more to it than I realised (isn't there always with typography?).
On English (at least US and UK) keyboards there's no access to the apostrophe that you mention,
and it doesn't exist in ASCII. If you stick to ASCII in program output you minimise the chances of a ? or a rectangle instead of what you want the user to see. Even if you get it right for Linux, PuTTY (ssh client for Windows) still defaults to the wrong encoding (ISO-8859-1) so someone's going to see something bad.