use std::{future::Future, time::Instant};
pub async fn expect_runtime<F>(edur: std::time::Duration, fut: F)
where
F: Future<Output = ()> + Send + 'static
{
let start = Instant::now();
fut.await;
let dur = Instant::now() - start;
assert!(dur > edur);
}