diff --git a/tests/harness.rs b/tests/harness.rs index 8fb39f0..a480ecc 100644 --- a/tests/harness.rs +++ b/tests/harness.rs @@ -4,7 +4,6 @@ use testcontainers::runners::AsyncRunner; use testcontainers_modules::postgres::Postgres; pub struct TestDb { - pub pool: PgPool, pub repository: EntityRepository, _container: testcontainers::ContainerAsync, } @@ -20,10 +19,9 @@ impl TestDb { let pool = PgPool::connect(&url).await.unwrap(); ensure_schema(&pool).await.unwrap(); - let repository = EntityRepository::new(pool.clone()); + let repository = EntityRepository::new(pool); Self { - pool, repository, _container: container, }