This commit is contained in:
parent
2836e990cb
commit
6777e7f7d9
9 changed files with 154 additions and 13 deletions
|
|
@ -606,8 +606,8 @@ object TestSubscriber {
|
|||
}
|
||||
|
||||
/**
|
||||
* Request and expect a stream element.
|
||||
*/
|
||||
* Request and expect a stream element.
|
||||
*/
|
||||
def requestNext(element: T): Self = {
|
||||
subscription.request(1)
|
||||
expectNext(element)
|
||||
|
|
@ -620,16 +620,16 @@ object TestSubscriber {
|
|||
}
|
||||
|
||||
/**
|
||||
* Request and expect a stream element.
|
||||
*/
|
||||
* Request and expect a stream element.
|
||||
*/
|
||||
def requestNext(): T = {
|
||||
subscription.request(1)
|
||||
expectNext()
|
||||
}
|
||||
|
||||
/**
|
||||
* Request and expect a stream element during the specified time or timeout.
|
||||
*/
|
||||
* Request and expect a stream element during the specified time or timeout.
|
||||
*/
|
||||
def requestNext(d: FiniteDuration): T = {
|
||||
subscription.request(1)
|
||||
expectNext(d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue