Skip to content

Commit

Permalink
fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Sep 19, 2024
1 parent 5737b8d commit 589825b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 589825b

Please sign in to comment.