DOC: TestKit sample is wrong. See #2072

* Added code to TestKitUsageSpec.scala
* Fixed errors
* Fixed race
This commit is contained in:
Patrik Nordwall 2012-05-18 13:28:53 +02:00
parent d65f4bbe59
commit 877981caef
3 changed files with 159 additions and 138 deletions

View file

@ -194,6 +194,8 @@ is a whole set of examination methods, e.g. receiving all consecutive messages
matching certain criteria, receiving a whole sequence of fixed messages or
classes, receiving nothing for some time, etc.
The ActorSystem passed in to the constructor of TestKit is accessible with
the the :obj:`system` member.
Remember to shut down the actor system after the test is finished (also in case
of failure) so that all actors—including the test actor—are stopped.