=tes #15132 remove not needed lazy val
This commit is contained in:
parent
d35b9a2bb6
commit
67784dbdae
1 changed files with 1 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ trait TestKitBase {
|
|||
|
||||
private def expectMsg_internal[T](max: Duration, obj: T, hint: Option[String] = None): T = {
|
||||
val o = receiveOne(max)
|
||||
lazy val hintOrEmptyString = hint.map(": " + _).getOrElse("")
|
||||
val hintOrEmptyString = hint.map(": " + _).getOrElse("")
|
||||
assert(o ne null, s"timeout ($max) during expectMsg while waiting for $obj" + hintOrEmptyString)
|
||||
assert(obj == o, s"expected $obj, found $o" + hintOrEmptyString)
|
||||
o.asInstanceOf[T]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue