From 71ff7a6ec1593e712705b052de436396817ce706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fern=C3=A1ndez?= Date: Thu, 25 Apr 2024 16:20:45 +0200 Subject: [PATCH] Fix monitor second path in unit tests --- src/appconfig.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appconfig.rs b/src/appconfig.rs index 17c85e2..32517e0 100644 --- a/src/appconfig.rs +++ b/src/appconfig.rs @@ -1122,7 +1122,7 @@ mod tests { assert_eq!(yaml[0]["monitor"][0]["path"].as_str().unwrap(), "C:\\Program Files\\"); assert_eq!(yaml[0]["monitor"][0]["labels"][0].as_str().unwrap(), "Program Files"); assert_eq!(yaml[0]["monitor"][0]["labels"][1].as_str().unwrap(), "windows"); - assert_eq!(yaml[0]["monitor"][1]["path"].as_str().unwrap(), format!("{}:\\Users\\", disk) ); + assert_eq!(yaml[0]["monitor"][1]["path"].as_str().unwrap(), "C:\\Users\\" ); assert_eq!(yaml[0]["monitor"][1]["labels"][0].as_str().unwrap(), "Users"); assert_eq!(yaml[0]["monitor"][1]["labels"][1].as_str().unwrap(), "windows");