Wait on shutdown of extra actor systems in tests. See #3217

This commit is contained in:
Björn Antonsson 2013-05-02 17:12:36 +02:00
parent 3bc661bed6
commit e00ab533bb
84 changed files with 762 additions and 845 deletions

View file

@ -3,6 +3,7 @@
*/
package docs.serialization;
import akka.testkit.JavaTestKit;
import org.junit.Test;
import static org.junit.Assert.*;
//#imports
@ -66,7 +67,7 @@ public class SerializationDocTestBase {
final ActorRef deserializedActorRef = extendedSystem.provider().resolveActorRef(identifier);
// Then just use the ActorRef
//#actorref-serializer
extendedSystem.shutdown();
JavaTestKit.shutdownActorSystem(extendedSystem);
}
static
@ -187,6 +188,6 @@ public class SerializationDocTestBase {
assertEquals(original, back);
//#programmatic
system.shutdown();
JavaTestKit.shutdownActorSystem(system);
}
}