async_test_helpers

Function expect_stream_item

Source
pub fn expect_stream_item<S: Stream + Unpin>(
    exec: &mut TestExecutor,
    stream: &mut S,
) -> S::Item
Expand description

Polls the provided stream and expects a non-null item to be produced.