akka/akka — pull request #825 by patriknw (2012-10-25 06:21:12+00:00)
Title: Wrong message ordering in ClusterDomainEventPublisherSpec, see #2648

* Problem: testActor subscriber sometimes didn't receive expected published
message
* Reason: the testActor subscribe/unsubscribe in beforeEach/afterEach via
different instances of the publisher, therefore the ordering of those
messages were not guaranteed, and unsubscribe happend after subscribe
* Solution: subscribe directly to the eventStream once, and use separate
TestProbe to verify the subscribe/unsubscribe