Skip to content

Commit 589825b

Browse files
committed
fix windows tests
1 parent 5737b8d commit 589825b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app_config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,10 @@ mod test {
590590
std::fs::create_dir_all(&env_web_dir).unwrap();
591591
std::fs::create_dir_all(&cli_web_dir).unwrap();
592592

593-
let config_content = format!(
594-
r#"{{ "web_root": "{}" }}"#,
595-
config_web_dir.to_str().unwrap()
596-
);
593+
let config_content = serde_json::json!({
594+
"web_root": config_web_dir.to_str().unwrap()
595+
})
596+
.to_string();
597597
std::fs::write(&config_file_path, config_content).unwrap();
598598

599599
env::set_var("SQLPAGE_WEB_ROOT", env_web_dir.to_str().unwrap());

0 commit comments

Comments
 (0)