From a3d17179d6914a142256b3b377712a553bc067a3 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 14 Jul 2024 21:21:39 +0530 Subject: [PATCH] fix: limit db pool to 1 in tests --- src/settings/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/settings/mod.rs b/src/settings/mod.rs index a1e7f46..1ae7248 100644 --- a/src/settings/mod.rs +++ b/src/settings/mod.rs @@ -150,6 +150,7 @@ pub mod tests { let mut db_url = Url::parse(&settings.database.url).unwrap(); db_url.set_path(&GenerateRandomString.get_random(12)); settings.database.url = db_url.to_string(); + settings.database.pool = 1; settings }