diff --git a/src/pg_fetch.rs b/src/pg_fetch.rs index 91a54a1..b775f1e 100644 --- a/src/pg_fetch.rs +++ b/src/pg_fetch.rs @@ -7,7 +7,6 @@ use bytes::Bytes; use futures::TryFutureExt; use reqwest::Response; -use std::future::Future; use crate::pg_enums::{Architecture, OperationSystem}; use crate::pg_errors::{PgEmbedError, PgEmbedErrorType}; @@ -117,7 +116,7 @@ mod tests { #[tokio::test] async fn fetch_postgres() -> Result<(), PgEmbedError> { let pg_settings = PgFetchSettings::default(); - pg_settings.fetch_postgres().await; + pg_settings.fetch_postgres().await?; Ok(()) } } diff --git a/tests/common.rs b/tests/common.rs index fc34bad..1e5cff5 100644 --- a/tests/common.rs +++ b/tests/common.rs @@ -19,6 +19,7 @@ pub async fn setup( .try_init(); let pg_settings = PgSettings { database_dir, + cache_dir: None, port, user: "postgres".to_string(), password: "password".to_string(), diff --git a/tests/postgres_tokio.rs b/tests/postgres_tokio.rs index 44103e0..47282cd 100644 --- a/tests/postgres_tokio.rs +++ b/tests/postgres_tokio.rs @@ -146,6 +146,7 @@ async fn postgres_server_timeout() -> Result<(), PgEmbedError> { .try_init(); let pg_settings = PgSettings { database_dir, + cache_dir: None, port: 5432, user: "postgres".to_string(), password: "password".to_string(),