Event chasing implemented
This commit is contained in:
parent
b01acfd8d6
commit
3a1a0cc4c4
4 changed files with 117 additions and 34 deletions
|
|
@ -368,11 +368,8 @@ class GraphInterpreterSpec extends StreamSpec with GraphInterpreterSpecKit {
|
|||
|
||||
sink.requestOne(eventLimit = 0)
|
||||
source.onComplete(eventLimit = 3)
|
||||
lastEvents() should ===(Set(OnNext(sink, "C")))
|
||||
|
||||
sink.requestOne()
|
||||
lastEvents() should ===(Set(OnComplete(sink)))
|
||||
|
||||
// OnComplete arrives early due to push chasing
|
||||
lastEvents() should ===(Set(OnNext(sink, "C"), OnComplete(sink)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue