all: set rust edition to 2024
This commit is contained in:
parent
02a18f620b
commit
3338909170
515 changed files with 1225 additions and 1187 deletions
20
src/it.rs
20
src/it.rs
|
|
@ -3,7 +3,7 @@ use {
|
|||
async_engine::Phase,
|
||||
it::{
|
||||
test_backend::TestBackend,
|
||||
test_config::{with_test_config, TestConfig},
|
||||
test_config::{TestConfig, with_test_config},
|
||||
testrun::TestRun,
|
||||
tests::TestCase,
|
||||
},
|
||||
|
|
@ -75,14 +75,16 @@ fn run_tests_(tests: Vec<&'static dyn TestCase>) {
|
|||
for _ in 0..num_cpus {
|
||||
let queue = queue.clone();
|
||||
let it_run = it_run.clone();
|
||||
threads.push(std::thread::spawn(move || loop {
|
||||
let test = match queue.lock().pop_front() {
|
||||
Some(t) => t,
|
||||
_ => break,
|
||||
};
|
||||
with_test_config(|cfg| {
|
||||
run_test(&it_run, test, cfg);
|
||||
})
|
||||
threads.push(std::thread::spawn(move || {
|
||||
loop {
|
||||
let test = match queue.lock().pop_front() {
|
||||
Some(t) => t,
|
||||
_ => break,
|
||||
};
|
||||
with_test_config(|cfg| {
|
||||
run_test(&it_run, test, cfg);
|
||||
})
|
||||
}
|
||||
}));
|
||||
}
|
||||
for thread in threads {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue