+str #18556 add delay combinator

This commit is contained in:
Alexander Golubev 2015-11-25 21:29:35 -05:00
parent 270ef41359
commit 83d3143236
10 changed files with 277 additions and 60 deletions

View file

@ -263,6 +263,16 @@ object TestSubscriber {
self
}
/**
* Fluent DSL
*
* Expect a stream element during specified time, then timeout.
*/
def expectNext(d: FiniteDuration, element: I): Self = {
probe.expectMsg(d, OnNext(element))
self
}
/**
* Fluent DSL
*