Fix TestProbeImpl#receiveN_internal with the receiveOne change
This commit is contained in:
parent
68b5fbb2ff
commit
d48c82c247
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 {
|
for (x ← 1 to n) yield {
|
||||||
val timeout = stop - now
|
val timeout = stop - now
|
||||||
val o = receiveOne(timeout)
|
val o = receiveOne(timeout)
|
||||||
assert(o != null, s"timeout ($max) while expecting $n messages (got ${x - 1})")
|
o match {
|
||||||
o
|
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