Nicer message when expectCancellation() fails (#23847)
This commit is contained in:
parent
85ab0efbd8
commit
b8a18bcf30
1 changed files with 1 additions and 1 deletions
|
|
@ -788,7 +788,7 @@ private[testkit] object StreamTestKit {
|
|||
case RequestMore(sub, n) if sub eq this ⇒ n
|
||||
}
|
||||
|
||||
def expectCancellation(): Unit = publisherProbe.fishForMessage() {
|
||||
def expectCancellation(): Unit = publisherProbe.fishForMessage(hint = "Expecting cancellation") {
|
||||
case CancelSubscription(sub) if sub eq this ⇒ true
|
||||
case RequestMore(sub, _) if sub eq this ⇒ false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue