Merge pull request #26004 from dwijnand/fix-TestProbeImpl-receiveN_internal

Fix TestProbeImpl#receiveN_internal with the receiveOne change
This commit is contained in:
Patrik Nordwall 2018-11-29 15:27:37 +01:00 committed by GitHub
commit 5ec809f3f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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})")
}
}
}