Skip to content

Commit

Permalink
Tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gloomweaver committed Jan 5, 2024
1 parent c316b0b commit 2eedd7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/client_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion tests/price_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/readme_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2eedd7a

Please sign in to comment.