use actori::actors::resolver; use actori::prelude::*; #[actori_rt::test] async fn test_resolver() { Arbiter::spawn(async { let resolver = resolver::Resolver::from_registry(); let _ = resolver.send(resolver::Resolve::host("localhost")).await; System::current().stop(); }); Arbiter::spawn(async { let resolver = resolver::Resolver::from_registry(); let _ = resolver .send(resolver::Connect::host("localhost:5000")) .await; }); }