diff --git a/tests/client_test.rs b/tests/client_test.rs index c45536d..1a86dec 100644 --- a/tests/client_test.rs +++ b/tests/client_test.rs @@ -8,7 +8,9 @@ mod tests { async fn new_client() -> Client { dotenv::from_path(Path::new(".env.local")).ok(); let api_key = env::var("API_KEY").expect("API_KEY not found"); - Client::new(&api_key).await + Client::new(&api_key) + .await + .expect("Failed to create client") } #[tokio::test] diff --git a/tests/price_test.rs b/tests/price_test.rs index d5987a9..060fc97 100644 --- a/tests/price_test.rs +++ b/tests/price_test.rs @@ -8,7 +8,9 @@ mod tests { async fn new_client() -> Client { dotenv::from_path(Path::new(".env.local")).ok(); let api_key = env::var("API_KEY").expect("API_KEY not found"); - Client::new(&api_key).await + Client::new(&api_key) + .await + .expect("Failed to create client") } #[tokio::test] diff --git a/tests/readme_test.rs b/tests/readme_test.rs index c879e42..bcbb3b2 100644 --- a/tests/readme_test.rs +++ b/tests/readme_test.rs @@ -12,7 +12,7 @@ mod tests { dotenv::from_path(Path::new(".env.local")).ok(); let api_key = env::var("API_KEY").expect("API_KEY not found"); - let mut client = Client::new(&api_key).await; + let mut client = Client::new(&api_key).await.unwrap(); let data = client .query("SELECT * FROM eth.recent_blocks LIMIT 10;") .await;