1
0
Fork 0
forked from wry/wry

config: add TestConfig

This commit is contained in:
Julian Orth 2022-05-02 20:53:07 +02:00
parent f92c9c6027
commit e212e0b8b1
7 changed files with 175 additions and 6 deletions

View file

@ -0,0 +1,15 @@
use {
crate::it::{test_error::TestError, testrun::TestRun},
std::{future::pending, rc::Rc},
};
testcase!();
/// Quit
async fn test(run: Rc<TestRun>) -> Result<(), TestError> {
for _ in 0..2 {
run.state.eng.yield_now().await;
}
run.cfg.quit()?;
pending().await
}