MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / test_retry_task_not_found

Function test_retry_task_not_found

src/task_manager.rs:520–538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

setup_test_environmentFunction · 0.85
retry_taskMethod · 0.80

Tested by

no test coverage detected