Skip to content

Commit 80e712b

Browse files
committed
Fix lint issue
1 parent a51287a commit 80e712b

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

crates/vespertide-loader/src/migrations.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -305,23 +305,6 @@ actions:
305305
assert!(result.is_ok());
306306
}
307307

308-
#[test]
309-
#[cfg(not(windows))]
310-
fn test_load_migrations_from_dir_with_unreadable_file() {
311-
// On Unix-like systems, we can't easily simulate file read errors
312-
// The error handling code path (line 85) exists and will be executed
313-
// in real-world scenarios when file read errors occur.
314-
let temp_dir = TempDir::new().unwrap();
315-
let migrations_dir = temp_dir.path().join("migrations");
316-
fs::create_dir_all(&migrations_dir).unwrap();
317-
318-
let file_path = migrations_dir.join("0001_test.json");
319-
fs::write(&file_path, r#"{"version": 1, "actions": []}"#).unwrap();
320-
321-
let result = load_migrations_from_dir(Some(temp_dir.path().to_path_buf()));
322-
assert!(result.is_ok());
323-
}
324-
325308
#[test]
326309
#[serial]
327310
fn test_load_migrations_from_dir_without_project_root() {

0 commit comments

Comments
 (0)