Skip to content

Commit c103d5b

Browse files
committed
adapt test
1 parent c46e1fe commit c103d5b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/simulation/config.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ fn default_profiling_level() -> String {
418418
#[cfg(test)]
419419
mod tests {
420420
use crate::simulation::config::{
421-
Config, EdgeWeight, MetisOptions, PartitionMethod, Partitioning, VertexWeight,
421+
ComputationalSetup, Config, EdgeWeight, MetisOptions, PartitionMethod, Partitioning,
422+
VertexWeight,
422423
};
423424

424425
#[test]
@@ -436,10 +437,15 @@ mod tests {
436437
contiguous: true,
437438
}),
438439
};
440+
let computational_setup = ComputationalSetup { global_sync: true };
439441
config
440442
.modules
441443
.borrow_mut()
442444
.insert("partitioning".to_string(), Box::new(partitioning));
445+
config.modules.borrow_mut().insert(
446+
"computational_setup".to_string(),
447+
Box::new(computational_setup),
448+
);
443449

444450
let yaml = serde_yaml::to_string(&config).expect("Failed to serialize yaml");
445451

@@ -459,6 +465,8 @@ mod tests {
459465
contiguous: true,
460466
})
461467
);
468+
469+
assert_eq!(parsed_config.compuational_setup().global_sync, true);
462470
}
463471

464472
#[test]

0 commit comments

Comments
 (0)