test: capture logs in test driver

This commit is contained in:
Ryan Leckey 2020-03-18 22:53:42 -07:00
parent a3a97fc0a4
commit 493e520c4e

View file

@ -2,7 +2,7 @@ use sqlx::{Connect, Database};
fn setup_if_needed() {
let _ = dotenv::dotenv();
let _ = env_logger::try_init();
let _ = env_logger::builder().is_test(true).try_init();
}
// Make a new connection