@@ -3,6 +3,7 @@ use std::path::PathBuf;
3
3
use rust_q_sim:: simulation:: config:: { CommandLineArgs , Config } ;
4
4
use rust_q_sim:: simulation:: id:: store_to_file;
5
5
use rust_q_sim:: simulation:: logging;
6
+ use rust_q_sim:: simulation:: logging:: init_std_out_logging;
6
7
use rust_q_sim:: simulation:: messaging:: communication:: communicators:: DummySimCommunicator ;
7
8
use rust_q_sim:: simulation:: network:: global_network:: Network ;
8
9
use rust_q_sim:: simulation:: population:: population:: Population ;
@@ -64,6 +65,8 @@ fn execute_adhoc_routing_two_parts_no_updates() {
64
65
65
66
#[ test]
66
67
fn execute_adhoc_routing_one_part_with_updates ( ) {
68
+ init_std_out_logging ( ) ;
69
+
67
70
create_resources (
68
71
& PathBuf :: from ( "./assets/adhoc_routing/with_updates/" ) ,
69
72
& PathBuf :: from ( "./test_output/simulation/adhoc_routing/with_updates/one_part/" ) ,
@@ -72,10 +75,6 @@ fn execute_adhoc_routing_one_part_with_updates() {
72
75
config_path : "./tests/resources/adhoc_routing/with_updates/config-1.yml" . to_string ( ) ,
73
76
num_parts : None ,
74
77
} ;
75
- let config = Config :: from_file ( & args) ;
76
-
77
- let _guards =
78
- logging:: init_logging ( & config, & args. config_path , config. partitioning ( ) . num_parts ) ;
79
78
80
79
execute_sim (
81
80
DummySimCommunicator ( ) ,
@@ -89,6 +88,8 @@ fn execute_adhoc_routing_one_part_with_updates() {
89
88
#[ test]
90
89
#[ serial_test:: serial]
91
90
fn execute_adhoc_routing_two_parts_with_updates ( ) {
91
+ init_std_out_logging ( ) ;
92
+
92
93
create_resources (
93
94
& PathBuf :: from ( "./assets/adhoc_routing/with_updates/" ) ,
94
95
& PathBuf :: from ( "./test_output/simulation/adhoc_routing/with_updates/two_parts/" ) ,
@@ -99,11 +100,6 @@ fn execute_adhoc_routing_two_parts_with_updates() {
99
100
num_parts : None ,
100
101
} ;
101
102
102
- let config = Config :: from_file ( & args) ;
103
-
104
- let _guards =
105
- logging:: init_logging ( & config, & args. config_path , config. partitioning ( ) . num_parts ) ;
106
-
107
103
execute_sim_with_channels (
108
104
args,
109
105
"./tests/resources/adhoc_routing/with_updates/expected_events.xml" ,
0 commit comments