1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! Example: Failure injection for testing resilience fn main() { println!("🧰 testkit-async - Failure injection example"); println!("🚧 Coming soon..."); // Future API: // use testkit_async::chaos::FailureInjector; // // #[testkit_async::test] // async fn test_retry() { // let injector = FailureInjector::new() // .fail_first(3) // .then_succeed(); // // let client = HttpClient::new() // .with_interceptor(injector); // // let result = retry_request(&client).await; // // assert!(result.is_ok()); // assert_eq!(injector.attempt_count(), 4); // } }