Skip to content

Commit 225f564

Browse files
committed
update test
1 parent 77cf848 commit 225f564

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/runtime_config.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ impl RuntimeConfigManager {
6666
#[cfg(test)]
6767
mod tests {
6868
use super::RuntimeConfigManager;
69+
use tokio::fs;
6970

7071
#[tokio::test]
7172
async fn test_runtime_config_manager() {
@@ -74,7 +75,7 @@ drop_task_killswitch:
7475
- test:do_nothing"#;
7576

7677
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();
7879

7980
let runtime_config = RuntimeConfigManager::new(test_path.to_string()).await;
8081
let config = runtime_config.read().await;
@@ -96,6 +97,6 @@ drop_task_killswitch:
9697
assert_eq!(config.drop_task_killswitch[0], "test:do_nothing");
9798
assert_eq!(config.drop_task_killswitch[1], "test:also_do_nothing");
9899

99-
std::fs::remove_file(test_path).unwrap();
100+
fs::remove_file(test_path).await.unwrap();
100101
}
101102
}

0 commit comments

Comments
 (0)