| 805 | |
| 806 | #[tokio::test] |
| 807 | async fn test_confirmation_not_found() { |
| 808 | let (event_tx, _) = broadcast::channel(100); |
| 809 | let manager = ConfirmationManager::new(ConfirmationPolicy::enabled(), event_tx); |
| 810 | |
| 811 | // Try to confirm non-existent confirmation |
| 812 | let result = manager.confirm("non-existent", true, None).await; |
| 813 | assert!(result.is_ok()); |
| 814 | assert!(!result.unwrap()); // Returns false for not found |
| 815 | } |
| 816 | |
| 817 | // ======================================================================== |
| 818 | // Multiple Confirmations Tests |