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

11 lines
223 B
Rust
Raw Normal View History

2020-10-15 10:51:21 +00:00
use reqwest::Client;
use std::time::Duration;
pub fn client() -> Client {
Client::builder().no_proxy().build().unwrap()
}
pub async fn wait_server_ready() {
2020-12-20 13:15:56 +00:00
async_std::task::sleep(Duration::from_secs(1)).await;
2020-04-26 11:53:44 +00:00
}