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