async-graphql/integrations/tide/tests/test_utils.rs

12 lines
224 B
Rust
Raw Normal View History

2021-11-19 00:10:47 +00:00
use std::time::Duration;
2022-04-19 04:25:11 +00:00
use reqwest::Client;
2021-11-19 00:10:47 +00:00
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;
}