Merge pull request #27246 from 2m/wip-expect-no-message-sub-2m
Add expectNoMessage to subscriber probe
This commit is contained in:
commit
7a16403f1b
5 changed files with 19 additions and 7 deletions
|
|
@ -115,11 +115,11 @@ class RecipeGlobalRateLimit extends RecipeSpec {
|
|||
|
||||
probe.expectNext() should startWith("E")
|
||||
probe.expectNext() should startWith("E")
|
||||
probe.expectNoMsg(500.millis)
|
||||
probe.expectNoMessage()
|
||||
|
||||
limiter ! Limiter.ReplenishTokens
|
||||
probe.expectNext() should startWith("E")
|
||||
probe.expectNoMsg(500.millis)
|
||||
probe.expectNoMessage()
|
||||
|
||||
var resultSet = Set.empty[String]
|
||||
for (_ <- 1 to 100) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class RecipeMissedTicks extends RecipeSpec {
|
|||
sub.expectNext(3)
|
||||
|
||||
subscription.request(1)
|
||||
sub.expectNoMsg(100.millis)
|
||||
sub.expectNoMessage()
|
||||
|
||||
pub.sendNext(())
|
||||
sub.expectNext(0)
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class RecipeSimpleDrop extends RecipeSpec {
|
|||
messageSource.via(realDroppyStream).to(sink).run()
|
||||
|
||||
val subscription = sub.expectSubscription()
|
||||
sub.expectNoMsg(100.millis)
|
||||
sub.expectNoMessage()
|
||||
|
||||
pub.sendNext("1")
|
||||
pub.sendNext("2")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue