File tree Expand file tree Collapse file tree
crates/vespertide-loader/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments