fix: test
CI / Check (push) Successful in 12m3s
CI / Format (push) Successful in 48s
CI / Test (push) Failing after 7m50s
CI / Clippy (push) Successful in 12m7s

This commit is contained in:
Guillaume GRABÉ
2026-06-09 00:39:05 +02:00
parent 1302ce412c
commit 5110ecc02d
+1 -3
View File
@@ -4,7 +4,6 @@ use testcontainers::runners::AsyncRunner;
use testcontainers_modules::postgres::Postgres; use testcontainers_modules::postgres::Postgres;
pub struct TestDb { pub struct TestDb {
pub pool: PgPool,
pub repository: EntityRepository, pub repository: EntityRepository,
_container: testcontainers::ContainerAsync<Postgres>, _container: testcontainers::ContainerAsync<Postgres>,
} }
@@ -20,10 +19,9 @@ impl TestDb {
let pool = PgPool::connect(&url).await.unwrap(); let pool = PgPool::connect(&url).await.unwrap();
ensure_schema(&pool).await.unwrap(); ensure_schema(&pool).await.unwrap();
let repository = EntityRepository::new(pool.clone()); let repository = EntityRepository::new(pool);
Self { Self {
pool,
repository, repository,
_container: container, _container: container,
} }