Merge pull request #26004 from dwijnand/fix-TestProbeImpl-receiveN_internal
Fix TestProbeImpl#receiveN_internal with the receiveOne change
This commit is contained in:
commit
5ec809f3f4
1 changed files with 4 additions and 2 deletions
|
|
@ -194,8 +194,10 @@ private[akka] final class TestProbeImpl[M](name: String, system: ActorSystem[_])
|
|||
for (x ← 1 to n) yield {
|
||||
val timeout = stop - now
|
||||
val o = receiveOne(timeout)
|
||||
assert(o != null, s"timeout ($max) while expecting $n messages (got ${x - 1})")
|
||||
o
|
||||
o match {
|
||||
case Some(m) ⇒ m
|
||||
case None ⇒ assertFail(s"timeout ($max) while expecting $n messages (got ${x - 1})")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue