()
| 518 | |
| 519 | #[tokio::test] |
| 520 | async fn test_retry_task_not_found() { |
| 521 | // Set up test environment |
| 522 | let (_config, _test_repo, ctx) = setup_test_environment().await.unwrap(); |
| 523 | |
| 524 | // Storage starts empty (SQLite creates the DB on first use) |
| 525 | |
| 526 | // Create TaskManager and try to retry a non-existent task |
| 527 | let task_manager = TaskManager::new(&ctx).unwrap(); |
| 528 | |
| 529 | let result = task_manager |
| 530 | .retry_task("non-existent-task", false, RetryOverrides::default(), &ctx) |
| 531 | .await; |
| 532 | assert!(result.is_err()); |
| 533 | assert!( |
| 534 | result |
| 535 | .unwrap_err() |
| 536 | .contains("Task with ID 'non-existent-task' not found") |
| 537 | ); |
| 538 | } |
| 539 | |
| 540 | #[tokio::test] |
| 541 | async fn test_retry_task_queued_error() { |
nothing calls this directly
no test coverage detected