use tokio_test::block_on; #[test] fn all_get_ip() { let sources: external_ip::Sources = external_ip::get_sources(); let consensus = external_ip::ConsensusBuilder::new() .add_sources(sources) .build(); let result = consensus.get_consensus(); let value = block_on(result); assert_ne!(value, None); }