Skip to content

Commit 737c81f

Browse files
committed
Change test to use relative invalid path
1 parent 7989960 commit 737c81f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/cli/tests/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn test_cli_parse_report_missing_id() {
110110
#[test]
111111
fn test_handle_history_invalid_db() {
112112
use code_guardian_cli::command_handlers::handle_history;
113-
let invalid_db = PathBuf::from("/invalid/path/db.db");
113+
let invalid_db = PathBuf::from("nonexistent/db.db");
114114
let result = handle_history(Some(invalid_db));
115115
assert!(result.is_err());
116116
}
@@ -119,7 +119,7 @@ fn test_handle_history_invalid_db() {
119119
#[test]
120120
fn test_handle_benchmark_invalid_path() {
121121
use code_guardian_cli::command_handlers::handle_benchmark;
122-
let invalid_path = PathBuf::from("/invalid/path");
122+
let invalid_path = PathBuf::from("invalid/path");
123123
let result = handle_benchmark(Some(invalid_path), false);
124124
assert!(result.is_err());
125125
}

0 commit comments

Comments
 (0)