1 use std::future::Future;
2 
3 use tokio::task::LocalSet;
4 
start_test(f: impl Future<Output = ()>)5 pub fn start_test(f: impl Future<Output = ()>) {
6     tokio_test::block_on(async move {
7         bt_common::init_logging();
8         tokio::time::pause();
9         LocalSet::new().run_until(f).await;
10     });
11 }
12