Skip to main content

assert_pending

Function assert_pending 

Source
pub fn assert_pending<F: Future>(fut: F)
Expand description

Like block_on, but expects the future not to finish.

For the cases where blocking is the behaviour under test — a get on an empty queue, a sequence waiting for a grant that never comes, a get_response for a ticket nobody will answer. Returns once the run queue is quiet, having proved the future is still waiting.