Use a pool of databases to speed up integration tests

Also, use env_logger consistently in the tests for each crate.
Only initiallize the logger at all if some RUST_LOG env var is set.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-02-07 15:00:00 -08:00
parent 8a2613d49c
commit e3f055d950
7 changed files with 99 additions and 47 deletions

View file

@ -18,9 +18,9 @@ use crate::{
#[cfg(test)]
#[ctor::ctor]
fn init_logger() {
env_logger::builder()
.filter_level(log::LevelFilter::Info)
.init();
if std::env::var("RUST_LOG").is_ok() {
env_logger::init();
}
}
pub fn run_test(