cargo_test_support

Function retry

Source
pub fn retry<F, R>(n: u32, f: F) -> R
where F: FnMut() -> Option<R>,
Expand description

Helper to retry a function n times.

The function should return Some when it is ready.