12 lines
260 B
Rust
12 lines
260 B
Rust
use std::future::Future;
|
|
|
|
use tokio::task::LocalSet;
|
|
|
|
pub fn start_test(f: impl Future<Output = ()>) {
|
|
tokio_test::block_on(async move {
|
|
bt_common::init_logging();
|
|
tokio::time::pause();
|
|
LocalSet::new().run_until(f).await;
|
|
});
|
|
}
|