forked from ROMEO/nexosim
Return both simulation and scheduler at init
This commit is contained in:
@ -51,7 +51,8 @@ fn timeout_untriggered(num_threads: usize) {
|
||||
.add_model(model, mbox, "test")
|
||||
.set_timeout(Duration::from_secs(1))
|
||||
.init(t0)
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
.0;
|
||||
|
||||
assert!(simu.process_event(TestModel::input, (), addr).is_ok());
|
||||
}
|
||||
@ -69,7 +70,8 @@ fn timeout_triggered(num_threads: usize) {
|
||||
.add_model(model, mbox, "test")
|
||||
.set_timeout(Duration::from_secs(1))
|
||||
.init(t0)
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
.0;
|
||||
|
||||
assert!(matches!(
|
||||
simu.process_event(TestModel::input, (), addr),
|
||||
|
Reference in New Issue
Block a user