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 -}