fix: limit db pool to 1 in tests
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2024-07-14 21:21:39 +05:30
parent 50bd3db7b3
commit a3d17179d6
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

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