You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
260 B

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;
});
}