(&self, peer: u64)
| 42 | #[async_trait] |
| 43 | impl ReachabilityProber for Flappy { |
| 44 | async fn probe(&self, peer: u64) -> Result<()> { |
| 45 | if self.healthy.load(Ordering::SeqCst) { |
| 46 | Ok(()) |
| 47 | } else { |
| 48 | Err(ClusterError::Transport { |
| 49 | detail: format!("mock: peer {peer} unreachable"), |
| 50 | }) |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | #[tokio::test(flavor = "multi_thread", worker_threads = 2)] |
nothing calls this directly
no test coverage detected