mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-24 18:17:57 +00:00
Switch to a for loop when reporting cases
This commit is contained in:
+5
-14
@@ -248,20 +248,11 @@ where
|
||||
// Note: before we do any kind of filtering or process the iterator in any way, we need to
|
||||
// inform the report aggregator of all of the cases that were found as it keeps a state of the
|
||||
// test cases for its internal use.
|
||||
stream::iter(tests.iter())
|
||||
.for_each_concurrent(None, |(_, _, _, _, reporter)| {
|
||||
let reporter = reporter.clone();
|
||||
async move {
|
||||
tokio::task::spawn_blocking(move || {
|
||||
reporter
|
||||
.report_test_case_discovery_event()
|
||||
.expect("Can't fail");
|
||||
})
|
||||
.await
|
||||
.expect("Should not fail");
|
||||
}
|
||||
})
|
||||
.await;
|
||||
for (_, _, _, _, reporter) in tests.iter() {
|
||||
reporter
|
||||
.report_test_case_discovery_event()
|
||||
.expect("Can't fail")
|
||||
}
|
||||
|
||||
stream::iter(tests.into_iter())
|
||||
.map(Ok::<_, anyhow::Error>)
|
||||
|
||||
Reference in New Issue
Block a user