1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[cfg(test)] mod tests { use crate::ping; #[tokio::test] async fn test_ping() { let p=ping(None, None); let pinged=p.await; assert!(pinged.is_ok()); } }