async-graphql/integrations/tide/tests/test_utils.rs
2021-11-19 08:10:47 +08:00

11 lines
223 B
Rust

use reqwest::Client;
use std::time::Duration;
pub fn client() -> Client {
Client::builder().no_proxy().build().unwrap()
}
pub async fn wait_server_ready() {
async_std::task::sleep(Duration::from_secs(1)).await;
}