=per #3820 Increase some test timeouts in persistence
* reproduced the problem with sleep in LeveldbStore
This commit is contained in:
parent
9a8766d871
commit
53ad96ed92
2 changed files with 4 additions and 3 deletions
|
|
@ -189,7 +189,7 @@ abstract class ChannelSpec(config: Config) extends AkkaSpec(config) with Persist
|
|||
|
||||
1 to 3 foreach { i ⇒ channel ! Deliver(Persistent(i), system.deadLetters.path) }
|
||||
|
||||
probe.expectMsgAllOf(1, 2, 3)
|
||||
probe.expectMsgAllOf(10.seconds, 1, 2, 3)
|
||||
system.stop(channel)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
package akka.persistence
|
||||
|
||||
import scala.collection.immutable.Seq
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.Config
|
||||
|
||||
|
|
@ -310,7 +311,7 @@ abstract class EventsourcedSpec(config: Config) extends AkkaSpec(config) with Pe
|
|||
expectMsg("c")
|
||||
expectMsg("a")
|
||||
}
|
||||
"support user stash operations with several stashed messages" in {
|
||||
"support user stash operations with several stashed messages" in within(10.seconds) {
|
||||
val processor = namedProcessor[UserStashManyProcessor]
|
||||
val n = 10
|
||||
val cmds = 1 to n flatMap (_ ⇒ List(Cmd("a"), Cmd("b-1"), Cmd("b-2"), Cmd("c")))
|
||||
|
|
@ -320,7 +321,7 @@ abstract class EventsourcedSpec(config: Config) extends AkkaSpec(config) with Pe
|
|||
processor ! GetState
|
||||
expectMsg((List("a-1", "a-2") ++ evts))
|
||||
}
|
||||
"support user stash operations under failures" in {
|
||||
"support user stash operations under failures" in within(5.seconds) {
|
||||
val processor = namedProcessor[UserStashFailureProcessor]
|
||||
val bs = 1 to 10 map ("b-" + _)
|
||||
processor ! Cmd("a")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue