debug: print db url in tests

This commit is contained in:
Aravinth Manivannan 2024-09-20 17:20:54 +05:30
parent 7d66d9d5b8
commit e14c42023a
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -158,6 +158,7 @@ pub mod tests {
let mut db_url = Url::parse(&settings.database.url).unwrap(); let mut db_url = Url::parse(&settings.database.url).unwrap();
db_url.set_path(&GenerateRandomString.get_random(12)); db_url.set_path(&GenerateRandomString.get_random(12));
settings.database.url = db_url.to_string(); settings.database.url = db_url.to_string();
println!("Test database URL: {}", settings.database.url);
settings.database.pool = 1; settings.database.pool = 1;
settings settings