Skip to content

Commit

Permalink
chore: parallelize test_transform_program_is_idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Feb 26, 2025
1 parent 45e7a7d commit 30d5788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tooling/nargo_cli/src/cli/compile_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ mod tests {
use nargo::ops::compile_program;
use nargo_toml::PackageSelection;
use noirc_driver::{CompileOptions, CrateName};
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};

use crate::cli::test_cmd::formatters::diagnostic_to_string;
use crate::cli::{
Expand Down Expand Up @@ -393,7 +394,7 @@ mod tests {

assert!(!test_workspaces.is_empty(), "should find some test workspaces");

test_workspaces.iter().for_each(|workspace| {
test_workspaces.par_iter().for_each(|workspace| {
let (file_manager, parsed_files) = parse_workspace(workspace);
let binary_packages = workspace.into_iter().filter(|package| package.is_binary());

Expand Down

0 comments on commit 30d5788

Please sign in to comment.