Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
czarte committed Dec 10, 2023
1 parent 15e66e6 commit 1391842
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions node/src/node_configurator/node_configurator_standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,16 @@ mod tests {
let result =
server_initializer_collected_params(&dir_wrapper, args_vec.as_slice()).unwrap_err();

let result_path = format!("Couldn't open configuration file \"{}\". Are you sure it exists?", home_dir.as_path().join(home_dir.as_path()).to_str().unwrap());
let expected = ConfiguratorError::new(vec![ ParamError::new("config-file", result_path.as_str())]);
let result_path = format!(
"Couldn't open configuration file \"{}\". Are you sure it exists?",
home_dir
.as_path()
.join(home_dir.as_path())
.to_str()
.unwrap()
);
let expected =
ConfiguratorError::new(vec![ParamError::new("config-file", result_path.as_str())]);

assert_eq!(result, expected);
}
Expand Down

0 comments on commit 1391842

Please sign in to comment.