Skip to content

Commit

Permalink
customise test for race between GetState and persistAsync handler akk…
Browse files Browse the repository at this point in the history
  • Loading branch information
ortigali committed Dec 24, 2016
1 parent b1e146c commit 6c8ef13
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -1154,9 +1154,7 @@ abstract class PersistentActorSpec(config: Config) extends PersistenceSpec(confi
"be able to persist events that happen during recovery" in {
val persistentActor = namedPersistentActor[PersistInRecovery]
persistentActor ! GetState
expectMsg(List("a-1", "a-2", "rc-1", "rc-2"))
persistentActor ! GetState
expectMsg(List("a-1", "a-2", "rc-1", "rc-2", "rc-3"))
expectMsgAnyOf(List("a-1", "a-2", "rc-1", "rc-2"), List("a-1", "a-2", "rc-1", "rc-2", "rc-3"))
persistentActor ! Cmd("invalid")
persistentActor ! GetState
expectMsg(List("a-1", "a-2", "rc-1", "rc-2", "rc-3", "invalid"))
Expand Down

0 comments on commit 6c8ef13

Please sign in to comment.