Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
olexiyb committed Jun 13, 2024
1 parent 28a3ad8 commit 7df4ab7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/pg_fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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(())
}
}
1 change: 1 addition & 0 deletions tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions tests/postgres_tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 7df4ab7

Please sign in to comment.