config: add TestConfig
This commit is contained in:
parent
f92c9c6027
commit
e212e0b8b1
7 changed files with 175 additions and 6 deletions
15
src/it/tests/t0004_quit.rs
Normal file
15
src/it/tests/t0004_quit.rs
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue