Skip to content

Commit

Permalink
51: inline test var
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusedwardhaslam committed Oct 20, 2023
1 parent f6a0660 commit b4e659a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/fta/src/config/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ mod tests {

#[test]
fn temp_read_config_with_nonexistent_file_and_user_specified_file_path() {
let nonexistent_path = "nonexistent_file.json";

let config = read_config(nonexistent_path.to_string(), true);
let config = read_config(String::from("nonexistent_file.json"), true);

assert!(config.is_err(), "Expected error, got {:?}", config);
}
Expand Down

0 comments on commit b4e659a

Please sign in to comment.