File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ impl RuntimeConfigManager {
66
66
#[ cfg( test) ]
67
67
mod tests {
68
68
use super :: RuntimeConfigManager ;
69
+ use tokio:: fs;
69
70
70
71
#[ tokio:: test]
71
72
async fn test_runtime_config_manager ( ) {
@@ -74,7 +75,7 @@ drop_task_killswitch:
74
75
- test:do_nothing"# ;
75
76
76
77
let test_path = "runtime_test_config.yaml" ;
77
- std :: fs:: write ( test_path, test_yaml) . unwrap ( ) ;
78
+ fs:: write ( test_path, test_yaml) . await . unwrap ( ) ;
78
79
79
80
let runtime_config = RuntimeConfigManager :: new ( test_path. to_string ( ) ) . await ;
80
81
let config = runtime_config. read ( ) . await ;
@@ -96,6 +97,6 @@ drop_task_killswitch:
96
97
assert_eq ! ( config. drop_task_killswitch[ 0 ] , "test:do_nothing" ) ;
97
98
assert_eq ! ( config. drop_task_killswitch[ 1 ] , "test:also_do_nothing" ) ;
98
99
99
- std :: fs:: remove_file ( test_path) . unwrap ( ) ;
100
+ fs:: remove_file ( test_path) . await . unwrap ( ) ;
100
101
}
101
102
}
You can’t perform that action at this time.
0 commit comments