File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2519,7 +2519,10 @@ mod property_tests {
2519
2519
} ) )
2520
2520
. unwrap ( ) ;
2521
2521
2522
- let tasks_result = Tasks :: new_with_db_path ( config, db_path, VerbosityLevel :: Quiet ) . await ;
2522
+ let tasks_result = Tasks :: builder ( config, VerbosityLevel :: Quiet )
2523
+ . with_db_path ( db_path)
2524
+ . build ( )
2525
+ . await ;
2523
2526
2524
2527
match tasks_result {
2525
2528
Ok ( tasks) => {
@@ -2535,10 +2538,14 @@ mod property_tests {
2535
2538
matched_names. sort ( ) ;
2536
2539
Ok ( matched_names)
2537
2540
}
2538
- Err ( _e ) => {
2539
- // If task creation fails, return empty vec (e.g., for invalid query )
2541
+ Err ( Error :: TaskNotFound ( _ ) ) => {
2542
+ // Only return empty vec for TaskNotFound (no matching tasks )
2540
2543
Ok ( vec ! [ ] )
2541
2544
}
2545
+ Err ( e) => {
2546
+ // Propagate other errors (IoError, CacheError, InvalidTaskName, etc.)
2547
+ Err ( e)
2548
+ }
2542
2549
}
2543
2550
}
2544
2551
You can’t perform that action at this time.
0 commit comments