Skip to content

Commit

Permalink
Minor test refactoring: better input variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoPonzi committed Nov 2, 2024
1 parent 965abcd commit 06a2de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions horust/tests/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn store_service(dir: &Path, service: &str, service_name: Option<&str>) -> S
pub fn store_service_script(
dir: &Path,
script: &str,
service: Option<&str>,
service_content: Option<&str>,
service_name: Option<&str>,
) -> String {
let rnd_name = create_random_name();
Expand All @@ -47,7 +47,7 @@ pub fn store_service_script(
r#"command = "/usr/bin/env bash {}"
{}"#,
script_path.display(),
service.unwrap_or("")
service_content.unwrap_or("")
);
store_service(dir, &service, Some(&service_name))
}
Expand Down

0 comments on commit 06a2de8

Please sign in to comment.