From 5110ecc02d28cc74d22c336e85bc176f03e42345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20GRAB=C3=89?= Date: Tue, 9 Jun 2026 00:39:05 +0200 Subject: [PATCH] fix: test --- tests/harness.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, }