From 589825bb454aca1fab935f9e5c59cc24fcf77579 Mon Sep 17 00:00:00 2001 From: lovasoa Date: Thu, 19 Sep 2024 21:17:05 +0200 Subject: [PATCH] fix windows tests --- src/app_config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app_config.rs b/src/app_config.rs index ffaea8ee..50c15cf9 100644 --- a/src/app_config.rs +++ b/src/app_config.rs @@ -590,10 +590,10 @@ mod test { std::fs::create_dir_all(&env_web_dir).unwrap(); std::fs::create_dir_all(&cli_web_dir).unwrap(); - let config_content = format!( - r#"{{ "web_root": "{}" }}"#, - config_web_dir.to_str().unwrap() - ); + let config_content = serde_json::json!({ + "web_root": config_web_dir.to_str().unwrap() + }) + .to_string(); std::fs::write(&config_file_path, config_content).unwrap(); env::set_var("SQLPAGE_WEB_ROOT", env_web_dir.to_str().unwrap());