From d8bea2c868ba47e10612125973990fe6e2d57b72 Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Thu, 27 Apr 2023 22:40:20 +0200 Subject: [PATCH] Fix test db setup --- fedimovies-models/src/database/test_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fedimovies-models/src/database/test_utils.rs b/fedimovies-models/src/database/test_utils.rs index a645e5c..842f972 100644 --- a/fedimovies-models/src/database/test_utils.rs +++ b/fedimovies-models/src/database/test_utils.rs @@ -19,7 +19,7 @@ pub async fn create_test_database() -> Client { // Create connection without database name db_config.dbname(""); - let db_client = create_database_client(&db_config).await; + let db_client = create_database_client(&db_config, None).await; let drop_db_statement = format!("DROP DATABASE IF EXISTS {db_name:?}", db_name = db_name,); db_client.execute(&drop_db_statement, &[]).await.unwrap(); let create_db_statement = format!( @@ -31,7 +31,7 @@ pub async fn create_test_database() -> Client { // Create new connection to database db_config.dbname(&db_name); - let mut db_client = create_database_client(&db_config).await; + let mut db_client = create_database_client(&db_config, None).await; apply_migrations(&mut db_client).await; db_client }