=per #18527 fix race condition in async stash test

This commit is contained in:
Johan Andrén 2015-09-23 11:58:38 +02:00
parent 3b996b80cb
commit 9d576b4eb5

View file

@ -163,8 +163,12 @@ class SteppingInMemPersistentActorStashingSpec extends PersistenceSpec(
SteppingInmemJournal.step(journal)
SteppingInmemJournal.step(journal)
persistentActor ! GetState
expectMsg(List("a", "c", "b"))
within(3.seconds) {
awaitAssert {
persistentActor ! GetState
expectMsg(List("a", "c", "b"))
}
}
}
}