From d84078d6c37ab15434bd82c15ef3cc2e2f4344f4 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Sat, 8 Mar 2025 19:18:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Removed=20unused=20duplicated=20?= =?UTF-8?q?function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/tests/tests/test_containers.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/tests/tests/test_containers.rs b/crates/tests/tests/test_containers.rs index 5b4eb0a..3341298 100644 --- a/crates/tests/tests/test_containers.rs +++ b/crates/tests/tests/test_containers.rs @@ -1,19 +1,11 @@ use diesel_migrations::EmbeddedMigrations; use lib::diesel::migration::run_migrations; use lib::test::test_containers::{ContainerError, TestContainer}; -use testcontainers_modules::postgres::Postgres; -use testcontainers_modules::testcontainers::runners::AsyncRunner; -use testcontainers_modules::testcontainers::{ContainerAsync, TestcontainersError}; pub async fn create_test_containers_pool() -> Result { let test_container = lib::test::test_containers::create_test_containers_pool().await?; - let pool = &test_container.pool; - let connection = pool.get().await?; + let connection = test_container.pool.get().await?; const MIGRATIONS: EmbeddedMigrations = diesel_migrations::embed_migrations!("./migrations"); run_migrations(connection, MIGRATIONS).await?; Ok(test_container) } - -pub async fn create_postgres_container() -> Result, TestcontainersError> { - Postgres::default().start().await -}